Skip to content

Generic delete#96

Merged
martinpaljak merged 4 commits intomasterfrom
generic-delete
Oct 31, 2023
Merged

Generic delete#96
martinpaljak merged 4 commits intomasterfrom
generic-delete

Conversation

@martinpaljak
Copy link
Copy Markdown
Member

Allows to delete both capfiles as well as recipes. Also updates deps.

@martinpaljak martinpaljak requested a review from sergkh as a code owner October 17, 2023 07:49
Copy link
Copy Markdown
Member

@sergkh sergkh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good addition! Added one suggestion.

final static protected OptionSpec<File> OPT_UPLOAD = parser.accepts("upload", "Upload CAP or recipe to Fidesmo").withRequiredArg().ofType(File.class).describedAs(".cap/.json file");
final static protected OptionSpec<Void> OPT_LIST_APPLETS = parser.accepts("list-applets", "List applets at Fidesmo");
final static protected OptionSpec<String> OPT_DELETE_APPLET = parser.accepts("delete-applet", "Deletes applet at Fidesmo").withRequiredArg().describedAs("ID");
final static protected OptionSpec<String> OPT_DELETE = parser.acceptsAll(List.of("delete", "delete-applet"), "Deletes applets and recipes at Fidesmo").withRequiredArg().describedAs("ID");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not that it was heavily documented before, but maybe we could expand the description a bit stating that applet can be deleted by the LFDBH or cap file path? Unlikely anyone would be able to find this out by themselves or even remember how it works.

@martinpaljak martinpaljak merged commit 2b1ecc6 into master Oct 31, 2023
@martinpaljak martinpaljak deleted the generic-delete branch October 31, 2023 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants