Skip to content

Commit 3ba8976

Browse files
committed
chore: 更新 jkconfig 版本至 0.1.2,修正默认配置文件路径
1 parent 4e8cbd2 commit 3ba8976

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jkconfig/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ keywords = ["tui", "config", "json-schema", "terminal"]
77
license = "MIT OR Apache-2.0"
88
name = "jkconfig"
99
repository = "https://github.com/ZR233/ostool"
10-
version = "0.1.1"
10+
version = "0.1.2"
1111

1212
[[bin]]
1313
name = "jkconfig"

jkconfig/src/data/app_data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub struct AppData {
1616
pub config: PathBuf,
1717
}
1818

19-
const DEFAULT_CONFIG_PATH: &str = ".project.toml";
19+
const DEFAULT_CONFIG_PATH: &str = ".config.toml";
2020

2121
fn default_schema_by_init(config: &Path) -> PathBuf {
2222
let binding = config.file_name().unwrap().to_string_lossy();

jkconfig/src/main.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ use jkconfig::{
1818
#[command(author = "周睿 <[email protected]>")]
1919
#[command(about = "配置编辑器", long_about = None)]
2020
struct Cli {
21-
/// 指定初始配置文件路径
22-
#[arg(short = 'c', long = "config", default_value = ".project.toml")]
21+
/// config file path
22+
#[arg(short = 'c', long = "config", default_value = ".config.toml")]
2323
config: PathBuf,
2424

25-
/// 指定schema文件路径(默认基于配置文件名推导)
25+
/// schema file path, default is config file name with '-schema.json' suffix
2626
#[arg(short = 's', long = "schema")]
2727
schema: Option<PathBuf>,
2828

@@ -34,11 +34,11 @@ struct Cli {
3434
/// 子命令枚举
3535
#[derive(Subcommand)]
3636
enum Commands {
37-
/// 启动TUI界面(默认行为)
37+
/// TUI (default)
3838
Tui,
39-
/// 启动Web服务器
39+
/// Web UI mode
4040
Web {
41-
/// 服务器端口
41+
/// server port
4242
#[arg(short = 'p', long = "port", default_value = "3000")]
4343
port: u16,
4444
},

0 commit comments

Comments
 (0)