summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/config.rs b/src/config.rs
index 30eac4b..03e962d 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -1,12 +1,13 @@
use std::path::PathBuf;
-use clap::{Args, Parser, Subcommand};
+use clap::{Args, Parser};
use tracing::{metadata::LevelFilter, Level};
#[derive(Debug, Clone, Parser)]
pub struct Config {
- #[command(subcommand)]
- pub command: Commands,
+ /// Update the history file from the current sessions
+ #[arg(short, long)]
+ pub update: bool,
/// tmux socket-name, equivelent to `tmux -L <socket-name>`
#[arg(short = 'L', long, default_value = "ssh")]
@@ -20,17 +21,6 @@ pub struct Config {
pub verbosity: Verbosity,
}
-#[derive(Debug, Clone, Subcommand)]
-pub enum Commands {
- /// List available session targets
- List,
- /// Switch to a specific session, or create it if it does not exist
- Switch {
- /// Target session name or ssh host
- name: String,
- },
-}
-
#[derive(Debug, Default, Clone, Args)]
pub struct Verbosity {
/// Print additional information per occurrence.