76 if (len(args[
'<args>']) != 1):
77 print(
"ERROR: invalid arguments provided in 'cfsp user' command. Aborting...")
80 if args[
'<args>'][0] ==
'load':
81 if (len(args[
'<args>']) == 1):
82 user=cFuser(args[
'--config'])
84 print(
"ERROR: invalid arguments provided in cfsp user load. Aborting...")
86 if args[
'--username'] !=
'username_example':
87 cfsp_globals.__cfsp_username__ = user.username = args[
'--username']
89 cfsp_globals.__cfsp_username__ = user.username
90 if args[
'--password'] !=
'password_example':
91 cfsp_globals.__cfsp_password__ = user.password = args[
'--password']
93 cfsp_globals.__cfsp_password__ = user.password
94 if args[
'--project'] !=
'project_example':
95 cfsp_globals.__cfsp_project__ = user.project = args[
'--project']
97 cfsp_globals.__cfsp_project__ = user.project
99 elif args[
'<args>'][0] ==
'show':
100 if (len(args[
'<args>']) == 1):
103 print(
"ERROR: invalid arguments provided in cfsp user show. Aborting...")
106 exit(print(
"ERROR: invalid command provided in cfsp user. Type 'cfsp help user' to get a list of supported commands. Aborting..."))
def print_user_credentials_from_file(json_file)