diff options
| author | Daniel Jankowski <Daniel.Jankowski@rub.de> | 2023-10-20 17:51:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-20 17:51:01 +0200 |
| commit | 35d93189e3638011883a931a96aea656dd125094 (patch) | |
| tree | 7f02e0ea8978c4d69011ac830514e0dd40b377f9 /src/main.rs | |
| parent | docs(changelog): web request api (diff) | |
| download | sl0ppij-35d93189e3638011883a931a96aea656dd125094.tar.gz sl0ppij-35d93189e3638011883a931a96aea656dd125094.tar.xz sl0ppij-35d93189e3638011883a931a96aea656dd125094.zip | |
fix(cli): session names only for attach in fish completion (#2857)
* feat(client): add flag for short output list-sessions
* fix(cli): list session names on fish completion
* chore(client): run cargo fmt
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index a009ba3c..3d1f37f3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -87,8 +87,12 @@ fn main() { } } - if let Some(Command::Sessions(Sessions::ListSessions { no_formatting })) = opts.command { - commands::list_sessions(no_formatting); + if let Some(Command::Sessions(Sessions::ListSessions { + no_formatting, + short, + })) = opts.command + { + commands::list_sessions(no_formatting, short); } else if let Some(Command::Sessions(Sessions::KillAllSessions { yes })) = opts.command { commands::kill_all_sessions(yes); } else if let Some(Command::Sessions(Sessions::KillSession { ref target_session })) = |
