forked from flux-framework/flux-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/flux-kvs: add [--json|--raw] options to "put"
Problem: flux-kvs put presumes values should be stored as JSON, but the KVS no longer requires this. Add type options to allow the user to choose how values are stored. If no options, value is stored as a NULL terminated string. If --raw, value is stored as with no options, but without a NULL terminator. For --raw mode only, key=- may be used to take read value from stdin. If --json, value is stored as a NULL terminated string if it is valid encoded JSON; otherwise it is first encoded as a JSON string. This mimics the old default behavior of flux-kvs put that is expected by many tests in t1000-kvs.t and t1002-kvs-extra.t. Add --json to flux kvs put where used in various sharness tests. Partial fix to flux-framework#1159.
- Loading branch information
Showing
8 changed files
with
153 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.