summaryrefslogtreecommitdiffstats
path: root/src/cli
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2021-06-11 17:46:40 +0200
committerCanop <cano.petrole@gmail.com>2021-06-11 17:46:40 +0200
commit442e304c3f3ca867d09103301efee42da7ea969f (patch)
tree596f1cc7b0cee6b0bfde100dad7c2673e2f37755 /src/cli
parent8b7bbf146c96de074c242abfdad40d21833d8a5a (diff)
"client-server" no longer feature gated
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/app_launch_args.rs2
-rw-r--r--src/cli/clap_args.rs4
-rw-r--r--src/cli/mod.rs4
3 files changed, 3 insertions, 7 deletions
diff --git a/src/cli/app_launch_args.rs b/src/cli/app_launch_args.rs
index 59be3fe..8618444 100644
--- a/src/cli/app_launch_args.rs
+++ b/src/cli/app_launch_args.rs
@@ -19,7 +19,5 @@ pub struct AppLaunchArgs {
pub commands: Option<String>, // commands passed as cli argument, still unparsed
pub height: Option<u16>, // an optional height to replace the screen's one
pub no_style: bool, // whether to remove all styles (including colors)
-
- #[cfg(feature = "client-server")]
pub listen: Option<String>,
}
diff --git a/src/cli/clap_args.rs b/src/cli/clap_args.rs
index 17874d5..5331326 100644
--- a/src/cli/clap_args.rs
+++ b/src/cli/clap_args.rs
@@ -213,7 +213,7 @@ pub fn clap_app() -> clap::App<'static, 'static> {
.help("Print to stdout the br function for a given shell"),
)
.setting(clap::AppSettings::DeriveDisplayOrder);
- #[cfg(feature="client-server")]
+ #[cfg(unix)]
let app = app
.arg(
clap::Arg::with_name("listen")
@@ -230,7 +230,7 @@ pub fn clap_app() -> clap::App<'static, 'static> {
clap::Arg::with_name("send")
.long("send")
.takes_value(true)
- .help("send command and quits")
+ .help("send commands to a remote broot then quits")
);
app
}
diff --git a/src/cli/mod.rs b/src/cli/mod.rs
index 7fe9441..64ecf95 100644
--- a/src/cli/mod.rs
+++ b/src/cli/mod.rs
@@ -163,7 +163,7 @@ pub fn run() -> Result<Option<Launchable>, ProgramError> {
let root = get_root_path(&cli_matches)?;
- #[cfg(feature = "client-server")]
+ #[cfg(unix)]
if let Some(server_name) = cli_matches.value_of("send") {
use crate::{
command::Sequence,
@@ -191,8 +191,6 @@ pub fn run() -> Result<Option<Launchable>, ProgramError> {
commands,
height,
no_style,
-
- #[cfg(feature = "client-server")]
listen: cli_matches.value_of("listen").map(str::to_string),
};
if must_show_selection_mark {