Open ferrouswheel opened 5 years ago
I agree that snet service
commands are rather long and we probably should do something with it.
But it will be really confusing to simply remove metadata-
and update-
prefix (we would have, for example, add-tags
and add-group
with very similar name but with very different semantic.)
metadata-
prefix shows that this function is working with metadata locally!
update-
- prefix indicate that we make real update of data in registry.
We could simply make separate set of commands snet service-metadata
and move all metadata related function there....
Good point about add-tag and add-group.
I think putting things that work on the local file under snet service-metadata
or just snet metadata
would be good. It wasn't clear to me that all metadata-
prefix meant working with a local file. But I see that pattern now! If it was it's own command it could have a explanation in the --help
explaining that these all just modify a local file until you publish/update.
I feel like publish-in-ipfs
, publish
, update-metadata
are all variants of publish
and should be controlled by a single publish
/push
command that either has subcommands or flags to choose what to publish or whether to force it to create a new service rather than update an existing one.
metadata-
prefix is unnecessaryupdate-add-tags
andupdate-remove-tags
doesn't need to be prefixes withupdate-