Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a meta get command #136

Merged
merged 1 commit into from
Jun 25, 2020
Merged

Add a meta get command #136

merged 1 commit into from
Jun 25, 2020

Conversation

craigds
Copy link
Member

@craigds craigds commented Jun 24, 2020

Description

I added a meta command that lets you view the meta/ blobs in the repository.

In future we'll add write commands (I'm thinking (add, replace, delete) that will allow changes to the meta blobs. Some blobs are required to read the repo features, so those will be blacklisted from modification.

Usage info:

$ sno meta --help
Usage: sno meta [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  get  Prints the value of meta keys for the given dataset.
$ sno meta get --help
Usage: sno meta get [OPTIONS] DATASET [KEYS]...

  Prints the value of meta keys for the given dataset. If no keys are given,
  all available values are printed.

Options:
  -o, --output-format [text|json]
  --json-style [extracompact|compact|pretty]
                                  How to format the JSON output. Only used
                                  with -o json

  --include-readonly / --exclude-readonly
                                  Include readonly meta items
  --help                          Show this message and exit.

Output

Screen Shot 2020-06-25 at 11 37 57 AM

Related links:

This works towards #102

Checklist:

  • Have you reviewed your own change?
  • Have you included test(s)?
  • Have you updated the changelog?

@craigds craigds requested a review from olsen232 June 24, 2020 23:42
@craigds craigds force-pushed the meta-command branch 2 times, most recently from 73b8e46 to 47df6ff Compare June 25, 2020 00:18
Lets you view meta items
@craigds craigds merged commit eb9fb5a into master Jun 25, 2020
@craigds craigds deleted the meta-command branch June 25, 2020 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants