Closed duncandewhurst closed 4 years ago
Is there a use case for setting packages
? In what case would a user have unpackaged records, but know the release packages from which they are sourced?
I eliminated the duplication by extracting a private _package
method in the library.
We could have a flexible package
command, but I think it's better and clearer to be specific.
If all looks good, feel free to merge.
Thanks @jpmckinney
No immediate need for setting packages
, it was just for completeness.
closes #98
I needed this to load some data from Afghanistan into the Data Review Tool.
I think I've covered everything in the contributing guidelines, the only bit I couldn't get working was the tests for
test_command_root_path_array
andtest_command_root_path_item
so I've commented those out.Edit: in retrospect, given there is a lot of duplication of the
package-releases
command, we might just want to either have a genericpackage
command or just update the documentation to explain thepackage-releases
can also be used to package records.Edit 2: I am also not sure of the best way to add an argument to populate the record package's
packages
key, since the command already accepts a list of extensions.