fortify / fcli

fcli is a command-line utility for interacting with various Fortify products
https://fortify.github.io/fcli/
Other
33 stars 22 forks source link

fcli ssc app delete : need the ability to differentiate application name with only numerical numbers and application IDs #170

Closed james-du1 closed 1 year ago

james-du1 commented 1 year ago

fcli ssc app delete : need the ability to differentiate application name with only numerical numbers and application IDs

fcli ssc app delete treats all numerical numbers as application IDs but customers might have application name using only numbers

image

rsenden commented 1 year ago

We'll need to think about a generic approach for handling numeric names versus id's, for example by having separate command line options that can be used instead of the positional parameter (i.e. --app-id and --app-name), or by using some prefix like id:8 or name:008.

MikeTheSnowman commented 1 year ago

@rsenden, I'm in favor of using --app-id as a boolean option to indicate that an ID is being provided. If --app-id isn't provided, the default behavior should be to treat the positional parameter as a name. I think the prefix approach is a bit too unique.