Enum jarida::Args[][src]

pub enum Args {
    New,
    List,
    Show {
        id: Option<Uuid>,
        toml: bool,
    },
    Edit {
        id: Uuid,
    },
    Index,
    Init {
        dir: Option<PathBuf>,
    },
}

Variants

New

Create a new journal entry

List

List all existing journal entries

Show

Show one or all journal entries

Fields of Show

id: Option<Uuid>

The ID of the entry to show

toml: bool

Whether to print the entry in TOML format instead of the default

Edit

Edit an existing journal entry

Fields of Edit

id: Uuid

The ID of the entry to edit

Index

Index all journal entries

This should only be needed for maintainence reasons.

Init

Initialize the system

Fields of Init

dir: Option<PathBuf>

The directory to use for program data. If omitted, a directory will be created in the user’s home directory.

Implementations

impl Args[src]

pub fn run(&self, cfg: &Config, db: &mut GuardedStore<'_>) -> Result<()>[src]

Trait Implementations

impl Debug for Args[src]

impl StructOpt for Args[src]

impl StructOptInternal for Args[src]

Auto Trait Implementations

impl RefUnwindSafe for Args

impl Send for Args

impl Sync for Args

impl Unpin for Args

impl UnwindSafe for Args

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,