pub enum MigrateAction {
Inventory {
target: Utf8PathBuf,
json: bool,
},
Archive {
target: Utf8PathBuf,
apply: bool,
rebuild: bool,
json: bool,
},
Mark {
name: String,
status: String,
group: Option<String>,
tags: Vec<String>,
destinations: Vec<String>,
reason: Option<String>,
target: Utf8PathBuf,
json: bool,
},
Status {
target: Utf8PathBuf,
json: bool,
},
Close {
target: Utf8PathBuf,
apply: bool,
json: bool,
},
}Expand description
The migration verbs. The archive opens a migration, the marks record the map and the loop, and the close ends it; the workspace under the state root keeps the archive and the registry between runs.
Variants§
Inventory
List every predecessor file with its tool and its kind, and the root files that stay in place; read-only.
Fields
target: Utf8PathBufThe repository to read.
Archive
Move every predecessor file into a new workspace, snapshot what no Git holds, and open the migration; preview by default. On an open migration it takes the forge snapshots still missing.
Fields
target: Utf8PathBufThe repository to act on.
apply: boolMove the files and write the workspace; without it the archive is reported and nothing is touched.
Mark
Record a status for a source or a group, appending a dated history
entry; --group files a source, --destination names where a
group’s kept content lives, and a drop names its reason.
Fields
A topic label for a source; repeatable.
target: Utf8PathBufThe repository whose migration to mark.
Status
Report the open migration: each source’s status and checksum, the groups, the snapshots, and what still blocks the close; read-only.
Fields
target: Utf8PathBufThe repository to read.
Close
End the migration once every source is verified or dropped and the setup proof is current, removing the configuration key; preview by default. The workspace stays for the operator.
Trait Implementations§
Source§impl Debug for MigrateAction
impl Debug for MigrateAction
Source§impl FromArgMatches for MigrateAction
impl FromArgMatches for MigrateAction
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 MigrateAction
impl Subcommand for MigrateAction
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand