pub enum RegistryCommands {
Init {
path: PathBuf,
},
List {
path: PathBuf,
},
Push {
input: PathBuf,
name: String,
version: String,
description: String,
license: String,
tags: String,
registry: PathBuf,
},
Pull {
name: String,
output: PathBuf,
version: Option<String>,
registry: PathBuf,
},
Search {
query: String,
path: PathBuf,
},
ShowInfo {
name: String,
path: PathBuf,
},
Delete {
name: String,
version: String,
path: PathBuf,
},
}Expand description
Registry commands for dataset sharing and discovery.
Variants§
Init
Initialize a new registry
List
List all datasets in a registry
Push
Push (publish) a dataset to the registry
apr propagates its auto --version into every subcommand
(propagate_version = true), which collides with this real
--version argument. Nothing wants apr data x registry push --version to print apr’s version, so disable the auto flag here.
Fields
Tags for the dataset (comma-separated)
Pull
Pull (download) a dataset from the registry
apr propagates its auto --version into every subcommand
(propagate_version = true), which collides with this real
--version argument. Nothing wants apr data x registry push --version to print apr’s version, so disable the auto flag here.
Fields
Search
Search datasets by name or description
ShowInfo
Show detailed info about a specific dataset
Delete
Delete a dataset version from the registry
apr propagates its auto --version into every subcommand
(propagate_version = true), which collides with this real
--version argument. Nothing wants apr data x registry push --version to print apr’s version, so disable the auto flag here.
Trait Implementations§
Source§impl Debug for RegistryCommands
impl Debug for RegistryCommands
Source§impl FromArgMatches for RegistryCommands
impl FromArgMatches for RegistryCommands
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 RegistryCommands
impl Subcommand for RegistryCommands
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 subcommandAuto Trait Implementations§
impl Freeze for RegistryCommands
impl RefUnwindSafe for RegistryCommands
impl Send for RegistryCommands
impl Sync for RegistryCommands
impl Unpin for RegistryCommands
impl UnsafeUnpin for RegistryCommands
impl UnwindSafe for RegistryCommands
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more