[−][src]Enum df_storyteller::bin::cli::Commands
All available subcommands in DF Storyteller.
Variants
A Guide for setting up DF Storyteller. This is also available on our website.
Fields of Guide
Parse and save the Legends files
Fields of Import
Start API server
Fields of Start
world: u32
Select what world to load from DB
List all the saved world
Fields of List
page: u32
View next page of worlds. Current page limit = 20. If the list is to long it will be broken up into pages. This allows you to get the other pages.
(TODO) Export a saved world
Fields of Export
world: u32
Select what world to load from DB
output: PathBuf
Output the parsed legends to file
format: Option<ExportFormats>
Format of output file. Default is Json
Export OpenAPI JSON file. This file can be used together with other documentation viewers like RapiDoc to view the API documentation.
Fields of Docs
output: PathBuf
Path to where to write the openapi.json
file, can be a file or directory
Create/overwrite persistent settings/config file. If no file is found it will create the default config file. If a file is found it will read the file (if valid) and write it again, this will ensure it is a valid and nicely formatted config file.
Fields of Config
Setup the database
Fields of Database
postgres: bool
Set up a Postgres database
db_user: Option<String>
The username that be used to create new roles By default "postgres" is used
db_port: Option<u16>
The port used for the database connection
Default is 5432
drop_db: bool
DANGER: This will DELETE the existing df_storyteller
database.
This deletes all stored data in the database.
Once deleted it will create a new database.
Trait Implementations
impl Debug for Commands
[src]
impl StructOpt for Commands
[src]
fn clap<'a, 'b>() -> App<'a, 'b>
[src]
fn from_clap(matches: &ArgMatches<'_>) -> Self
[src]
fn from_args() -> Self
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
impl StructOptInternal for Commands
[src]
fn augment_clap<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b>
[src]
fn from_subcommand<'a, 'b>(
sub: (&'b str, Option<&'b ArgMatches<'a>>)
) -> Option<Self>
[src]
sub: (&'b str, Option<&'b ArgMatches<'a>>)
) -> Option<Self>
fn is_subcommand() -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnwindSafe for Commands
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, I> AsResult<T, I> for T where
I: Input,
I: Input,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
A: Array<Item = T>,
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
impl<T> IntoSql for T
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
&'a Self: AsExpression<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,