pub enum CliCommand {
Show 14 variants
Faker {
count: u64,
},
Fetch {
uri: String,
save: bool,
fetch_as: Option<String>,
},
Relay {
action: RelayCommand,
},
Count {
likes: bool,
shares: bool,
replies: bool,
},
Update {
days: i64,
limit: Option<u64>,
},
Register {
username: String,
password: String,
display_name: Option<String>,
summary: Option<String>,
avatar_url: Option<String>,
banner_url: Option<String>,
},
Reset {
login: String,
password: String,
},
Nuke {
for_real: bool,
delete_objects: bool,
},
Thread {},
Cloak {
objects: bool,
actors: bool,
contents: bool,
re_cloak: bool,
},
FixActivities {
likes: bool,
announces: bool,
},
Import {
file: PathBuf,
from: String,
to: String,
attachment_base: Option<String>,
},
Export {
actor: String,
file: PathBuf,
pretty: bool,
},
Attachments {},
}Variants§
Faker
generate fake user, note and activity
Fetch
fetch a single AP object
Fields
Relay
act on remote relay actors at instance level
Fields
§
action: RelayCommandaction to take against this relay
Count
recount object statistics
Fields
fix shares counts for posts
Update
update remote actors
Fields
Register
register a new local user
Fields
url for banner image of new user
Reset
reset password of a user
Nuke
break all user relations so that instance can be shut down
Fields
Thread
attempt to fix broken threads and completely gather their context
Cloak
replaces all attachment urls with proxied local versions (only useful for old instances)
Fields
FixActivities
restore activities links, only needed for very old installs
Import
import posts coming from another instance: replay them as local
Fields
Export
export posts from a local actor as a json array, like an outbox
Fields
Attachments
fix attachments types based on mediaType
Trait Implementations§
Source§impl Clone for CliCommand
impl Clone for CliCommand
Source§fn clone(&self) -> CliCommand
fn clone(&self) -> CliCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CliCommand
impl Debug for CliCommand
Source§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>
Assign values from
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>
Assign values from
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
Append to
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
Test whether
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
Mutably borrows from an owned value. Read more