Open rehno-lindeque opened 8 years ago
@rehno-lindeque Wouldn't it be easier to get the data programmatically via python?
Python seems a bit heavy-weight for what I have in mind? I tend to just shell script our nix-shell environment in this sort of style:
alias dump-args = nixops info --args > .args
alias load-args = nixops set-args $(xargs < .args)
Ah, sorry, I misread your original request. I was already thinking of something similar. Will add it in next release.
Fantastic thanks!
The only command I know of for listing arguments set using
nixops set-args
isnixops info
.I feel it would be convenient to list arguments in a more machine-friendly format. Currently the output for
nixops info
seems intended for human consumption (and--plain
doesn't list arguments).The use case I have in mind is dumping arguments to a file in order to pass along to someone else. How does this idea sound to others?