pub(crate) enum CliCommand {
Show 18 variants
ApplyFile {
file: PathBuf,
preserve_nimbus_db: bool,
open: OpenArgs,
},
CaptureLogs {
file: PathBuf,
},
Defaults {
feature_id: Option<String>,
output: Option<PathBuf>,
manifest: ManifestArgs,
},
Enroll {
experiment: ExperimentArgs,
branch: String,
rollouts: Vec<String>,
preserve_targeting: bool,
preserve_bucketing: bool,
open: OpenArgs,
preserve_nimbus_db: bool,
no_validate: bool,
manifest: ManifestArgs,
},
Features {
manifest: ManifestArgs,
experiment: ExperimentArgs,
branch: String,
validate: bool,
feature_id: Option<String>,
multi: bool,
output: Option<PathBuf>,
},
Fetch {
output: Option<PathBuf>,
experiment: ExperimentArgs,
recipes: Vec<String>,
},
FetchList {
output: Option<PathBuf>,
list: ExperimentListArgs,
},
Fml {
args: Vec<OsString>,
},
Info {
experiment: ExperimentArgs,
output: Option<PathBuf>,
},
List {
list: ExperimentListArgs,
},
LogState {
open: OpenArgs,
},
Open {
open: OpenArgs,
no_clobber: bool,
},
StartServer,
ResetApp,
TailLogs,
TestFeature {
feature_id: String,
files: Vec<PathBuf>,
patch: Option<PathBuf>,
open: OpenArgs,
no_validate: bool,
manifest: ManifestArgs,
},
Unenroll {
open: OpenArgs,
},
Validate {
experiment: ExperimentArgs,
manifest: ManifestArgs,
},
}
Variants§
ApplyFile
Send a complete JSON file to the Nimbus SDK and apply it immediately.
Fields
CaptureLogs
Capture the logs into a file.
Defaults
Print the defaults for the manifest.
Fields
manifest: ManifestArgs
Enroll
Enroll into an experiment or a rollout.
The experiment slug is a combination of the actual slug, and the server it came from.
-
release
/stage
determines the server. -
preview
selects the preview collection.
These can be further combined: e.g. $slug, preview/$slug, stage/$slug, stage/preview/$slug
Fields
experiment: ExperimentArgs
preserve_nimbus_db: bool
Keeps existing enrollments and experiments before enrolling.
This is unlikely what you want to do.
manifest: ManifestArgs
Features
Print the feature configuration involved in the branch of an experiment.
This can be optionally merged with the defaults from the feature manifest.
Fields
manifest: ManifestArgs
experiment: ExperimentArgs
validate: bool
If set, then merge the experimental configuration with the defaults from the manifest
feature_id: Option<String>
An optional feature-id: if it exists in this branch, print this feature on its own.
Fetch
Fetch one or more named experiments and rollouts and put them in a file.
Fields
experiment: ExperimentArgs
FetchList
Fetch a list of experiments and put it in a file.
Fml
Execute a nimbus-fml command. See
nimbus-cli fml – –help
for more.
Info
Displays information about an experiment
List
List the experiments from a server
Fields
list: ExperimentListArgs
LogState
Print the state of the Nimbus database to logs.
This causes a restart of the app.
Open
Open the app without changing the state of experiment enrollments.
Fields
StartServer
Start a server
ResetApp
Reset the app back to its just installed state
TailLogs
Follow the logs for the given app.
TestFeature
Configure an application feature with one or more feature config files.
One file per branch. The branch slugs will correspond to the file names.
By default, the files are validated against the manifest; this can be
overridden with --no-validate
.
Fields
patch: Option<PathBuf>
An optional patch file, used to patch feature configurations
This is of the format that comes from the
features --multi
or defaults
commands.
manifest: ManifestArgs
Unenroll
Unenroll from all experiments and rollouts
Validate
Validate an experiment against a feature manifest
Implementations§
source§impl CliCommand
impl CliCommand
pub(crate) fn check_valid(&self) -> Result<()>
pub(crate) fn open_args(&self) -> Option<&OpenArgs>
pub(crate) fn should_kill(&self) -> bool
pub(crate) fn should_reset(&self) -> bool
Trait Implementations§
source§impl Clone for CliCommand
impl Clone for CliCommand
source§fn clone(&self) -> CliCommand
fn clone(&self) -> CliCommand
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl FromArgMatches for CliCommand
impl FromArgMatches for CliCommand
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches
to self
.source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches
to self
.source§impl Subcommand for CliCommand
impl Subcommand for CliCommand
source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self
can parse a specific subcommandAuto Trait Implementations§
impl Freeze for CliCommand
impl RefUnwindSafe for CliCommand
impl Send for CliCommand
impl Sync for CliCommand
impl Unpin for CliCommand
impl UnwindSafe for CliCommand
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Read more