pub enum Command {
Asset {
cmd: AssetCmd,
},
Account {
cmd: AccountCmd,
},
Post {
book: Option<String>,
idem: Option<String>,
debit: Vec<String>,
credit: Vec<String>,
occurred_at: Option<String>,
metadata: Option<String>,
draft: Option<String>,
},
Balance {
book: String,
path: String,
as_of: Option<String>,
},
History {
book: String,
path: String,
after_seq: Option<i64>,
limit: u32,
},
Tx {
tx_id: String,
},
TrialBalance {
book: String,
as_of: Option<String>,
},
Tail {
book: String,
from: i64,
},
Completions {
shell: Shell,
},
Man {
out_dir: PathBuf,
},
}Variants§
Asset
Asset registry operations
Account
Account operations
Fields
§
cmd: AccountCmdPost
Post a balanced transaction
Fields
Balance
Current or point-in-time balance
History
Paginated posting history for an account
Tx
Fetch a committed transaction by id
TrialBalance
Per-asset debit/credit sums for a book
Tail
Stream the book’s event log as JSON lines (Ctrl-C to stop)
Completions
Print shell completions to stdout (e.g. talea completions zsh)
Man
Write man pages (talea.1 plus one page per subcommand) to a directory
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
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 Command
impl Subcommand for Command
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 Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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