Expand description
DID syntax and shell quoting for the command vgi repo init prints.
The printed cnm git adopt … line is meant to be copied into a shell, so
every argument in it is either DID-core-validated or a normalised
resource, and is quoted anyway: a value that needs no quoting is printed
bare, anything else in single quotes.
Functions§
- check_
did - Check
didagainst the DID-coredidproduction (a DID, not a DID URL): - command_
line argvas one line a POSIX shell reads back as the same arguments.- quote
- Quote
argfor a POSIX shell: bare when every character is one no shell treats specially, otherwise in single quotes (a'inside becoming'\'').