All subcommands are passed to the prosaic
command:
prosaic poem new
- -v, --verbose: Log actions and errors to STDERR
- -V, --version: Prints prosaic's version and exits
- -h, --help: Display help information
- -d, --dbname: Database name. Defaults to
prosaic
- -p, --port: Database port. Defaults to
5432
- -w, --password: Database password. Defaults to
prosaic
- -o, --host: Database host. Defaults to
localhost
- -u, --user: Database user. Defaults to
prosaic
- ls
- rm
- new
- link
- unlink
- sources
prosaic corpus ls
List all of the corpora prosaic knows about.
prosaic corpus rm "corpus name"
Delete a corpus and unlink it from any sources.
prosaic corpus new "corpus name" ["corpus description"]
Create a new, empty corpus. Optionally accepts a description for the corpus.
prosaic corpus link "corpus name" "source name"
Adds a source to a given corpus.
prosaic corpus unlink "source name"
Removes a source from a given corpus.
prosaic corpus sources "corpus name"
Lists all of the sources in a corpus.
- ls
- rm
- new
prosaic source ls
Lists all of the sources (ie files of text) that prosaick knows about.
prosaic source rm "source name"
Delete a source, unlinking it from any corpora.
prosaic source new "source name" "path to txt file" ["description"]
Create a new source from a given file path. Prosaic will read the file, parse its sentences, and save them. Optionally, provide a description for the source.
The sentences from the source are unavailable for use in poems until the source is linked to a corpora.
- new
prosaic poem new [-t "template name" -c "corpus name" -o "file name"]
- -c, --corpus: Specify which corpus to use. If left out, uses all phrases prosaic knows of.
- -t, --template: Specify what template to use. If left out, uses
haiku
. - -o, --output: Optionally specify a file to save the poem in. If left out, prints to STDOUT.
Generate a new poem.
- ls
- rm
- new
- edit
prosaic template ls
List all templates prosaic knows about.
prosaic template rm "template name"
Remove a template from the disk.
prosaic template new "template name"
Create a new template using $EDITOR.
prosaic template edit "template name"
Edit a template using $EDITOR. If it does not exist, it will be created.