CLI: Export database as CSV
* Changed `Extract` to `Export` to support additional formats * Allow database expot as CSV. Added a `--format` option to the `Export` command for that, which defaults to xml, so the current behavior is unchanged. *The `CsvExporter` had to be refactored a bit, but nothing major. It can now print to a file or return a string.
This commit is contained in:
@@ -36,8 +36,8 @@ The same password generation options as documented for the generate command can
|
||||
.IP "estimate [options] [password]"
|
||||
Estimates the entropy of a password. The password to estimate can be provided as a positional argument, or using the standard input.
|
||||
|
||||
.IP "extract [options] <database>"
|
||||
Extracts and prints the contents of a database to standard output in XML format.
|
||||
.IP "export [options] <database>"
|
||||
Exports the content of a database to standard output in the specified format (defaults to XML).
|
||||
|
||||
.IP "generate [options]"
|
||||
Generate a random password.
|
||||
@@ -164,6 +164,12 @@ otherwise the program will fail. If the wordlist has < 4000 words a warning will
|
||||
be printed to STDERR.
|
||||
|
||||
|
||||
.SS "Export options"
|
||||
|
||||
.IP "-f, --format"
|
||||
Format to use when exporting. Available choices are xml or csv. Defaults to xml.
|
||||
|
||||
|
||||
.SS "List options"
|
||||
|
||||
.IP "-R, --recursive"
|
||||
|
||||
Reference in New Issue
Block a user