[][src]Enum gooseberry::gooseberry::cli::GooseberryCLI

pub enum GooseberryCLI {
    Sync,
    Search {
        filters: Filters,
        fuzzy: bool,
    },
    Tag {
        filters: Filters,
        delete: bool,
        tag: Option<String>,
    },
    Delete {
        filters: Filters,
        hypothesis: bool,
        force: bool,
    },
    View {
        filters: Filters,
        id: Option<String>,
    },
    Make,
    Complete {
        shell: Shell,
    },
    Config {
        cmd: ConfigCommand,
    },
    Clear {
        force: bool,
    },
    Move {
        group_id: String,
        filters: Filters,
        search: bool,
        fuzzy: bool,
    },
}

Create and manage your Hypothesis knowledge-base

Variants

Sync

Sync newly added or updated Hypothesis annotations.

Search

Opens a search buffer to see, filter, delete, add tags to and delete tags from annotations

Fields of Search

filters: Filtersfuzzy: bool

Toggle fuzzy search

Tag

Tag annotations according to topic.

Fields of Tag

filters: Filtersdelete: bool

Use this flag to remove the given tag from the filtered annotations instead of adding it

tag: Option<String>

The tag to add to / remove from the filtered annotations

Delete

Delete annotations in bulk either just from gooseberry or from both gooseberry and Hypothesis

Fields of Delete

filters: Filtershypothesis: bool

Also delete from Hypothesis. Without this flag, the "gooseberry_ignore" flag is added to the selected annotations to ensure that they are not synced by gooseberry in the future. If the flag is given then the annotations are also deleted from Hypothesis.

force: bool

Don't ask for confirmation

View

View (optionally filtered) annotations

Fields of View

filters: Filtersid: Option<String>

View annotation by ID

Make

Create and update your knowledge-base markdown files

Complete

Generate shell completions

Fields of Complete

shell: Shell

type of shell

Config

Manage data locations. Controlled by $GOOSEBERRY_CONFIG env variable, Use this to have independent knowledge bases for different projects.

Fields of Config

cmd: ConfigCommand
Clear

Clear all gooseberry data "ob oggle sobble obble"

Fields of Clear

force: bool

Don't ask for confirmation

Move

Move (optionally filtered) annotations from a different hypothesis group to Gooseberry's Only moves annotations created by the current user

Fields of Move

group_id: String

Group ID to move from

filters: Filterssearch: bool

Open a search buffer to see and search filtered annotations to further filter them

fuzzy: bool

Toggle fuzzy search

Implementations

impl GooseberryCLI[src]

pub fn complete(shell: Shell)[src]

Generate shell completions for gooseberry

Trait Implementations

impl Debug for GooseberryCLI[src]

impl StructOpt for GooseberryCLI[src]

impl StructOptInternal for GooseberryCLI[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsAny for T where
    T: Any
[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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<D> OwoColorize for D

impl<T> Pointable for T

type Init = T

The type for initializers.

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>,