vmware-archive / repository-editor-for-tuf

Command line tool for editing and maintaining a TUF repository
Apache License 2.0
5 stars 3 forks source link

New command to add target to repo #32

Closed jku closed 1 year ago

jku commented 2 years ago

tufrepo edit <TARGETS> add-target ... works but requires me to know which targets metadata to add things into. this is inconvenient with hash bins.

I would like a way to add the target to the final delegated metadata in the chain. this could be just a flag to add-target, like --delegate that means the target should be added to the final terminating metadata

jku commented 1 year ago

CC @MVrachev : I assume using the succinct delegations is really painful without this but let me know if you get to testing that...

jku commented 1 year ago

I ended up re-designing the CLI a bit (because add-target is not really a edit-subcommand anymore). The PR seems to work really nicely but the code is a bit meh still (so is a draft)