Skip to content

Commit 994a64d

Browse files
committed
chore: shell hook alias
1 parent 76a1adc commit 994a64d

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

flake.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
nativeBuildInputs = [
4141
pkg-config
4242
];
43+
shellHook = ''
44+
alias rkshare="cargo run --quiet --"
45+
'';
4346
};
4447
}
4548
);

rkshare-tools/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,3 @@ rkshare = { features = ["cli", "pretty"], path = "../rkshare" }
1717
serde.workspace = true
1818
serde_json.workspace = true
1919
tokio.workspace = true
20-

rkshare-tools/src/cli/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ mod utils;
88

99
/// RkShare 开源财经数据接口库——命令行工具。
1010
#[derive(clap::Parser, Debug)]
11-
#[command(
12-
arg_required_else_help(true),
13-
// disable_help_flag(true),
14-
disable_help_subcommand(true)
15-
)]
11+
#[command(arg_required_else_help(true), disable_help_subcommand(true))]
1612
pub struct Cli {
1713
#[command(subcommand)]
1814
commands: Commands,

0 commit comments

Comments
 (0)