File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -101,10 +101,11 @@ def check_in_my(snipeit_api, args):
101
101
if not list_my_assets (snipeit_api , args ):
102
102
return
103
103
104
- print (f"Are you sure you want to check in { len (my_assets )} assets? [y/N]" )
105
- if input () != "y" :
106
- print (f"Checking in { len (my_assets )} assets aborted." )
107
- return
104
+ if not args .yes :
105
+ print (f"Are you sure you want to check in { len (my_assets )} assets? [y/N]" )
106
+ if input () != "y" :
107
+ print (f"Checking in { len (my_assets )} assets aborted." )
108
+ return
108
109
109
110
failed = []
110
111
for asset in my_assets :
@@ -605,6 +606,9 @@ def main():
605
606
check_in_my_parser = snipeit_subparsers .add_parser (
606
607
"check_in_my" , help = "Check in all my used assets"
607
608
)
609
+ check_in_my_parser .add_argument (
610
+ "-y" , "--yes" , action = "store_true" , help = "Skips the confirmation"
611
+ )
608
612
609
613
# RTE subcommands
610
614
rte_parser .add_argument ("--rte_ip" , type = str , help = "RTE IP address" , required = True )
You can’t perform that action at this time.
0 commit comments