Skip to content

Commit c518de4

Browse files
committed
make Opts fields public for external use
1 parent f508d4b commit c518de4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/cli.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ use tokio::process::Command;
2323
pub struct Opts {
2424
/// The flake to deploy
2525
#[clap(group = "deploy")]
26-
target: Option<String>,
26+
pub target: Option<String>,
2727

2828
/// A list of flakes to deploy alternatively
2929
#[clap(long, group = "deploy")]
30-
targets: Option<Vec<String>>,
30+
pub targets: Option<Vec<String>>,
3131

3232
/// Override hostname used for the node
3333
#[clap(long)]
34-
hostname: Option<String>,
34+
pub hostname: Option<String>,
3535

3636
#[clap(flatten)]
37-
flags: data::Flags,
37+
pub flags: data::Flags,
3838

3939
#[clap(flatten)]
40-
generic_settings: settings::GenericSettings,
40+
pub generic_settings: settings::GenericSettings,
4141
}
4242

4343
/// Returns if the available Nix installation supports flakes

0 commit comments

Comments
 (0)