aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2022-06-25 21:48:00 +0200
committerGitHub <noreply@github.com>2022-06-25 21:48:00 +0200
commit7ed66d3e785824b7a1ee363701931c232bde8b30 (patch)
tree0d8778d2e9d20cd7f6da4c0b554f5a856fa259be /src/main.rs
parentdocs(changelog): allow hex colors for themes (diff)
downloadsl0ppij-7ed66d3e785824b7a1ee363701931c232bde8b30.tar.gz
sl0ppij-7ed66d3e785824b7a1ee363701931c232bde8b30.tar.xz
sl0ppij-7ed66d3e785824b7a1ee363701931c232bde8b30.zip
add(feature): `unstable` (#1542)
Add a feature `unstable`, which is intended to communicate the same intent. Gate: Send actions from cli with the `unstable` feature.
Diffstat (limited to '')
-rw-r--r--src/main.rs11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index 6e5cd9e9..ca05dbf1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -14,11 +14,16 @@ fn main() {
configure_logger();
let opts = CliArgs::parse();
+ #[cfg(feature = "unstable")]
+ {
+ if let Some(Command::Sessions(Sessions::Action { .. })) = opts.command {
+ commands::send_action_to_session(opts);
+ std::process::exit(0);
+ }
+ }
+
if let Some(Command::Sessions(Sessions::ListSessions)) = opts.command {
commands::list_sessions();
- }
- if let Some(Command::Sessions(Sessions::Action { .. })) = opts.command {
- commands::send_action_to_session(opts);
} 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 })) =