Skip to content

Commit

Permalink
ci(release): 优化 GitHub Actions 发布流程
Browse files Browse the repository at this point in the history
  • Loading branch information
h7ml committed Dec 28, 2024
1 parent 8f2d368 commit e0e355d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ai-markdown-translator",
"version": "1.0.13",
"version": "1.0.14",
"description": "CLI tool to translate Markdown files using OpenAI's language models while preserving the original formatting.",
"main": "dist/index.js",
"type": "module",
Expand Down
7 changes: 6 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,11 @@ async function main() {
type: 'string',
default: __dirname,
})
.option('show-path', {
description: '显示当前文件所在的目录',
type: 'boolean',
default: false,
})
.help()
.alias('help', 'h').argv;

Expand All @@ -551,7 +556,7 @@ async function main() {
}

// 如果指定了 path 参数,显示目录结构
if (argv.path) {
if (argv['show-path']) {
const pathToShow = path.resolve(argv.path as string);
console.log(`\n📂 目录结构: ${pathToShow}`);
console.log('.');
Expand Down

0 comments on commit e0e355d

Please sign in to comment.