pub enum WikiCommand {
Show 35 variants
Get {
page: String,
},
List {
page: String,
cursor: Option<String>,
},
Find {
text: String,
kind: Option<String>,
page: u32,
},
Comments {
page: String,
thread: Option<u64>,
status: Option<String>,
cursor: Option<String>,
},
Attachments {
page: String,
cursor: Option<String>,
},
Grids {
page: String,
cursor: Option<String>,
},
Grid {
grid: String,
filter: Option<String>,
sort: Option<String>,
columns: Option<String>,
rows: Option<String>,
revision: Option<u64>,
},
Resources {
page: String,
kind: Option<String>,
query: Option<String>,
cursor: Option<String>,
},
Create {
page: String,
title: String,
from: Option<String>,
silent: bool,
},
Update {
page: String,
title: Option<String>,
from: Option<String>,
merge: bool,
silent: bool,
},
Append {
page: String,
from: String,
top: bool,
anchor: Option<String>,
silent: bool,
},
Delete {
page: String,
recursive: bool,
},
Restore {
token: String,
},
Comment {
page: String,
text: String,
reply_to: Option<u64>,
quote: Option<String>,
},
DeleteComment {
page: String,
comment: u64,
},
Access {
page: String,
},
Grant {
page: String,
role: String,
user: Option<String>,
uid: Option<String>,
cloud_uid: Option<String>,
group: Option<String>,
no_inherit: bool,
allow_selflock: bool,
},
Regrant {
page: String,
access: String,
role: Option<String>,
inheritance: Option<String>,
allow_selflock: bool,
},
Revoke {
page: String,
access: Option<String>,
all: bool,
allow_selflock: bool,
},
ClonePage {
page: String,
target: String,
title: Option<String>,
subscribe: bool,
no_wait: bool,
},
CloneGrid {
grid: String,
target: String,
title: Option<String>,
with_data: bool,
no_wait: bool,
},
Operation {
kind: String,
id: String,
},
CreateGrid {
page: String,
title: String,
},
UpdateGrid {
grid: String,
title: Option<String>,
sort: Option<String>,
revision: Option<String>,
},
DeleteGrid {
grid: String,
},
RowsAdd {
grid: String,
from: String,
after: Option<String>,
position: Option<u64>,
revision: Option<String>,
},
RowsDelete {
grid: String,
rows: Vec<String>,
revision: Option<String>,
},
RowsMove {
grid: String,
row: String,
after: Option<String>,
position: Option<u64>,
count: Option<u64>,
revision: Option<String>,
},
ColumnsAdd {
grid: String,
from: String,
position: Option<u64>,
revision: Option<String>,
},
ColumnsDelete {
grid: String,
columns: Vec<String>,
revision: Option<String>,
},
ColumnsMove {
grid: String,
column: String,
position: u64,
count: Option<u64>,
revision: Option<String>,
},
CellsSet {
grid: String,
set: Vec<String>,
revision: Option<String>,
},
Upload {
page: String,
files: Vec<PathBuf>,
},
DeleteAttachment {
page: String,
file: String,
},
Download {
page: String,
file: Option<String>,
out: PathBuf,
force: bool,
},
}Variants§
Get
Show one page: its title and last change, then its text.
List
List the pages under one.
Fields
Find
Search pages and files.
Fields
Comments
Show a page’s comments.
Fields
Attachments
List a page’s attachments.
Fields
Grids
List the grids — dynamic tables — on a page.
Fields
Grid
Show one grid: its columns, then its rows.
Fields
Resources
List what a page holds: files and grids together.
Fields
Create
Create a page; its parent is whatever the slug’s path says.
Fields
Update
Replace a page’s text, or retitle it.
Fields
Append
Add text to a page: at the bottom, the top, or an anchor.
Fields
Delete
Delete a page, printing the token that restores it.
Restore
Restore a deleted page by the token its deletion printed.
Comment
Comment on a page, or reply to a comment.
Fields
DeleteComment
Delete a comment. There is no undo, so it needs –yes.
Fields
Access
Show who can read and edit a page.
Grant
Give a user or a group a role on a page.
Fields
Regrant
Change a grant’s role, or whether subpages inherit it.
Fields
Revoke
Remove a grant, or every personal grant on a page.
Fields
ClonePage
Copy a page to a new address, and wait for the copy.
Fields
CloneGrid
Copy a grid onto a page, and wait for the copy.
Fields
Operation
Show where a clone has got to.
CreateGrid
Create an empty grid on a page.
UpdateGrid
Retitle a grid, or set the order its rows show in.
Fields
DeleteGrid
Delete a grid. There is no undo, so it needs –yes.
RowsAdd
Add rows from JSON: an array of objects keyed by column slug.
Fields
RowsDelete
Delete rows by id. There is no undo, so it needs –yes.
Fields
RowsMove
Move a row — and the rows after it, with –count.
Fields
ColumnsAdd
Add columns from JSON: an array of column definitions.
Fields
ColumnsDelete
Delete columns by slug. There is no undo, so it needs –yes.
Fields
ColumnsMove
Move a column to a position.
Fields
CellsSet
Set cells: –set ROW:SLUG=VALUE, as many as needed.
Fields
Upload
Attach files to a page.
DeleteAttachment
Delete a file attached to a page. There is no undo, so it needs –yes.
Fields
Download
Download one file attached to a page.
Trait Implementations§
Source§impl Debug for WikiCommand
impl Debug for WikiCommand
Source§impl FromArgMatches for WikiCommand
impl FromArgMatches for WikiCommand
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 WikiCommand
impl Subcommand for WikiCommand
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 WikiCommand
impl RefUnwindSafe for WikiCommand
impl Send for WikiCommand
impl Sync for WikiCommand
impl Unpin for WikiCommand
impl UnsafeUnpin for WikiCommand
impl UnwindSafe for WikiCommand
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
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);