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

Update behaviour of shpc config get to only show value of key #661

Merged
merged 4 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are:
The versions coincide with releases on pip. Only major versions will be released as tags on Github.

## [0.0.x](https://github.com/singularityhub/singularity-hpc/tree/main) (0.0.x)
- Change format of config command output to only show setting values, not keys, for parseability (0.1.25)
- Allow custom location for wrapper scripts (0.1.24)
- Labels with newlines need additional parsing (0.1.23)
- Do not write directly to output with shpc show (0.1.22)
Expand Down
5 changes: 3 additions & 2 deletions shpc/client/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ def main(args, parser, extra, subparser):
elif command == "get":
for key in args.params:
value = cli.settings.get(key)
value = "is unset" if value is None else value
logger.info("%s %s" % (key.ljust(30), value))
value = "unset" if value is None else value
# similar to view get in view.py
print(value)

else:
logger.error("%s is not a recognized command." % command)
2 changes: 1 addition & 1 deletion shpc/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
__copyright__ = "Copyright 2021-2023, Vanessa Sochat"
__license__ = "MPL 2.0"

__version__ = "0.1.24"
__version__ = "0.1.25"
AUTHOR = "Vanessa Sochat"
EMAIL = "[email protected]"
NAME = "singularity-hpc"
Expand Down
Loading