mirror of
https://codeberg.org/scip/anydb.git
synced 2025-12-17 12:31:02 +01:00
fixed copylocks linter warning
This commit is contained in:
25
cmd/anydb.go
25
cmd/anydb.go
@@ -234,6 +234,10 @@ SUBCOMMANDS
|
||||
|
||||
If you want to search case insensitive, add the option "-i".
|
||||
|
||||
By default anydb only searches through the keys. If you want to search
|
||||
through the values as well, then use the "-s" option, which enables
|
||||
full-text search.
|
||||
|
||||
You can - as with the get command - use other output modes. The default
|
||||
mode is "table". The "wide" mode is, as already mentioned, a more
|
||||
detailed table. Also supported is "json" mode and "template" mode. For
|
||||
@@ -293,7 +297,7 @@ SUBCOMMANDS
|
||||
Usage:
|
||||
|
||||
Usage:
|
||||
anydb export [-o <json filename>] [flags]
|
||||
anydb export -o <json filename> [flags]
|
||||
|
||||
Aliases:
|
||||
export, dump, backup
|
||||
@@ -303,11 +307,11 @@ SUBCOMMANDS
|
||||
-o, --output string output to file
|
||||
|
||||
The database dump is a JSON representation of the whole database and
|
||||
will be printed to STDOUT by default. Redirect it to a file or use the
|
||||
"-o" option:
|
||||
will be printed to the file specified with the "-o" option. If you
|
||||
specify "-" as the filename, it will be written to STDIN.
|
||||
|
||||
anydb export > dump.json
|
||||
anydb export -o dump.json
|
||||
anydb export -o - > dump.json
|
||||
|
||||
Please note, that encrypted values will not be decrypted. This might
|
||||
change in a future version of anydb.
|
||||
@@ -319,7 +323,7 @@ SUBCOMMANDS
|
||||
Usage:
|
||||
|
||||
Usage:
|
||||
anydb import [<json file>] [flags]
|
||||
anydb import -i <json file> [flags]
|
||||
|
||||
Aliases:
|
||||
import, restore
|
||||
@@ -329,12 +333,13 @@ SUBCOMMANDS
|
||||
-h, --help help for import
|
||||
-t, --tags stringArray tags, multiple allowed
|
||||
|
||||
By default the "import" subcommand reads the JSON contents from STDIN.
|
||||
You might pipe the dump into it or use the option "-r":
|
||||
The "import" subcommand reads the JSON contents from the file specified
|
||||
with the "-i" option. If you specify "-" as the filename, it will be
|
||||
read from STDIN.
|
||||
|
||||
anydb import < dump.json
|
||||
anydb import -r dump.json
|
||||
cat dump.json | anydb import
|
||||
anydb import -i - < dump.json
|
||||
anydb import -i dump.json
|
||||
cat dump.json | anydb import -i -
|
||||
|
||||
If there is already a database, it will be saved by appending a
|
||||
timestamp and a new database with the contents of the dump will be
|
||||
|
||||
Reference in New Issue
Block a user