66from veracode .build import Build
77from veracode .utils .report import display
88
9- @click .group ()
9+ @click .group (help = 'Perform actions on an application.' )
1010def app ():
1111 pass
1212
1313
14- @app .command ()
14+ @app .command (help = 'List applications.' )
1515@click .option ('--format' , '-f' ,
1616 help = 'Output format.' )
1717def list (format = 'simple' ):
@@ -20,10 +20,12 @@ def list(format='simple'):
2020 display (data = data , headers = headers , format = format )
2121
2222
23- @app .command ()
24- @click .option ('--name' , '-n' , required = True )
25- @click .option ('--criticality' , '-c' , required = True , type = click .Choice (
26- [ 'Very High' , 'High' , 'Medium' , 'Low' , 'Very Low' ]))
23+ @app .command (help = 'Create a new Application.' )
24+ @click .option ('--name' , '-n' , required = True ,
25+ help = 'Name of application to create.' )
26+ @click .option ('--criticality' , '-c' , required = True ,
27+ type = click .Choice (['Very High' , 'High' , 'Medium' , 'Low' , 'Very Low' ]),
28+ help = 'Business criticality of new application.' )
2729
2830@click .option ('--sandbox' , '-s' )
2931def create (name , criticality , sandbox = None ):
@@ -37,9 +39,9 @@ def create(name, criticality, sandbox=None):
3739 app .sandbox = sbx
3840
3941
40- @app .command ()
42+ @app .command (help = 'Delete an existing application.' )
4143@click .option ('--name' , '-n' , required = True ,
42- help = 'Name of application to update' )
44+ help = 'Name of application to update. ' )
4345@click .confirmation_option ('--force' , '-f' ,
4446 help = 'Suppress prompt before removal.' ,
4547 prompt = 'Are you sure you want to delete this application' )
@@ -48,7 +50,7 @@ def delete(name):
4850 return app .delete ()
4951
5052
51- @app .command ()
53+ @app .command (help = 'Update an existing application.' )
5254@click .option ('--name' , '-n' , required = True ,
5355 help = 'Name of application to update.' )
5456@click .option ('--rename' , '-r' ,
@@ -57,7 +59,6 @@ def delete(name):
5759 [ 'Very High' , 'High' , 'Medium' , 'Low' , 'Very Low' ],
5860 case_sensitive = True ), # update app to snake case so we can go -i
5961 help = 'New criticality for the application.' )
60-
6162def update (name , rename = None , criticality = None ):
6263 # this isn't the right way to do this, google more
6364 if not (rename or criticality ):
@@ -71,7 +72,7 @@ def update(name, rename=None, criticality=None):
7172 app .save ()
7273
7374
74- @app .command ()
75+ @app .command (help = 'Launch a new SAST scan.' )
7576@click .option ('--app' , '-a' , required = True ,
7677 help = 'Name of the application.' )
7778@click .option ('--files' , '-f' , required = True ,
0 commit comments