mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-29 23:31:03 +03:00
fix(cli): rename attach --background
to attach --create-background
(#3265)
* fix(cli): rename background to create_background * fix(cli): change create-background shortcut
This commit is contained in:
parent
d473c7291d
commit
954bdcb1a2
@ -418,7 +418,7 @@ pub(crate) fn start_client(opts: CliArgs) {
|
|||||||
opts.command = Some(Command::Sessions(Sessions::Attach {
|
opts.command = Some(Command::Sessions(Sessions::Attach {
|
||||||
session_name: reconnect_to_session.name.clone(),
|
session_name: reconnect_to_session.name.clone(),
|
||||||
create: true,
|
create: true,
|
||||||
background: false,
|
create_background: false,
|
||||||
force_run_commands: false,
|
force_run_commands: false,
|
||||||
index: None,
|
index: None,
|
||||||
options: None,
|
options: None,
|
||||||
@ -478,7 +478,7 @@ pub(crate) fn start_client(opts: CliArgs) {
|
|||||||
if let Some(Command::Sessions(Sessions::Attach {
|
if let Some(Command::Sessions(Sessions::Attach {
|
||||||
session_name,
|
session_name,
|
||||||
create,
|
create,
|
||||||
background,
|
create_background,
|
||||||
force_run_commands,
|
force_run_commands,
|
||||||
index,
|
index,
|
||||||
options,
|
options,
|
||||||
@ -490,7 +490,7 @@ pub(crate) fn start_client(opts: CliArgs) {
|
|||||||
},
|
},
|
||||||
None => config_options,
|
None => config_options,
|
||||||
};
|
};
|
||||||
should_create_detached = background;
|
should_create_detached = create_background;
|
||||||
|
|
||||||
let client = if let Some(idx) = index {
|
let client = if let Some(idx) = index {
|
||||||
attach_with_session_index(
|
attach_with_session_index(
|
||||||
|
@ -126,8 +126,8 @@ pub enum Sessions {
|
|||||||
create: bool,
|
create: bool,
|
||||||
|
|
||||||
/// Create a detached session in the background if one does not exist
|
/// Create a detached session in the background if one does not exist
|
||||||
#[clap(short, long, value_parser)]
|
#[clap(short('b'), long, value_parser)]
|
||||||
background: bool,
|
create_background: bool,
|
||||||
|
|
||||||
/// Number of the session index in the active sessions ordered creation date.
|
/// Number of the session index in the active sessions ordered creation date.
|
||||||
#[clap(long, value_parser)]
|
#[clap(long, value_parser)]
|
||||||
|
Loading…
Reference in New Issue
Block a user