feat(CLI): StorageTransferAction support #228
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is based on my suggestion to remove the
action
group in #202, which I think was ill-defined.Instead:
--actions
flag tonode show
andgroup show
to show relevantStorageTransferAction
s affecting the node/group.--all
flag tonode show
andgroup show
to provide a way to list everything without having to know what lists what.StorageTransferAction
s:group auto-sync GROUP NODE
to set/clear the autosync flagnode auto-clean NODE GROUP
to set/clear the autoclean flagFor a given (NODE, GROUP) pair, these two commands modify the same row in the
StorageTransferAction
table (the pair has to be unique in the table). So, there's ambiguity over which command goes with which "noun". The way I've done it, the command is associated with the object that the auto-action modifies (auto-sync adds files to GROUP; auto-clean deletes files from NODE). There's probably an argument for doing it the other way; I'm not sure it matters much, so long as we are consistent about it.Also: should the command names have a dash in them? Or would
group autosync GROUP NODE
etc. be better?