aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/client/history.rs
diff options
context:
space:
mode:
authorConrad Ludgate <conradludgate@gmail.com>2022-10-18 09:50:22 +0100
committerGitHub <noreply@github.com>2022-10-18 09:50:22 +0100
commit5e2c438dabc74d7e87fad46c725501753a0a8a26 (patch)
treec6e1b3aea892e7150cd1d94bd13c68ee2efcea42 /src/command/client/history.rs
parentAdd message begging for help lol 🐢 (#569) (diff)
downloadatuin-5e2c438dabc74d7e87fad46c725501753a0a8a26.zip
Upgrade clap (#568)
Diffstat (limited to '')
-rw-r--r--src/command/client/history.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/command/client/history.rs b/src/command/client/history.rs
index 07f4b319..6a78adc9 100644
--- a/src/command/client/history.rs
+++ b/src/command/client/history.rs
@@ -20,7 +20,7 @@ use log::debug;
use super::search::format_duration;
#[derive(Subcommand)]
-#[clap(infer_subcommands = true)]
+#[command(infer_subcommands = true)]
pub enum Cmd {
/// Begins a new command in the history
Start { command: Vec<String> },
@@ -28,33 +28,33 @@ pub enum Cmd {
/// Finishes a new command in the history (adds time, exit code)
End {
id: String,
- #[clap(long, short)]
+ #[arg(long, short)]
exit: i64,
},
/// List all items in history
List {
- #[clap(long, short)]
+ #[arg(long, short)]
cwd: bool,
- #[clap(long, short)]
+ #[arg(long, short)]
session: bool,
- #[clap(long)]
+ #[arg(long)]
human: bool,
/// Show only the text of the command
- #[clap(long)]
+ #[arg(long)]
cmd_only: bool,
},
/// Get the last command ran
Last {
- #[clap(long)]
+ #[arg(long)]
human: bool,
/// Show only the text of the command
- #[clap(long)]
+ #[arg(long)]
cmd_only: bool,
},
}