[][src]Enum df_storyteller::bin::cli::Commands

enum Commands {
    Guide {},
    Import {
        world: u32,
        file: PathBuf,
        show_unknown: bool,
    },
    Start {
        world: u32,
    },
    List {
        page: u32,
    },
    Export {
        world: u32,
        output: PathBuf,
        format: Option<ExportFormats>,
    },
    Docs {
        output: PathBuf,
    },
    Config {},
    Database {
        postgres: bool,
        db_user: Option<String>,
        db_port: Option<u16>,
        drop_db: bool,
    },
}

All available subcommands in DF Storyteller.

Variants

Guide

A Guide for setting up DF Storyteller. This is also available on our website.

Fields of Guide

Import

Parse and save the Legends files

Fields of Import

world: u32

Select what world to load from DB

file: PathBuf

Legends Files to process. Give one of the legend files, other files will be found automatically

show_unknown: bool

(TODO) Show a list of unknown tags in files

Start

Start API server

Fields of Start

world: u32

Select what world to load from DB

List

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.

Export

(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

Docs

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

Config

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

Database

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]

impl StructOptInternal for Commands[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]

impl<T, I> AsResult<T, I> for T where
    I: Input, 

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> IntoCollection<T> for T

impl<T> IntoSql for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

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<T> Typeable for T where
    T: Any

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