Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions ghe2json.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,11 @@ def generate_template(environment):

def main(args):
if args.ghe_file == False:
message="""Please paste below the output from gheboot informing you that the
appliance is ready (optionally paste in a token for an admin user
with all scopes set). When that's done press the return key twice to proceed:\n"""
clear_screen()
print(f"""\nPlease paste below the output from gheboot informing you that the appliance is ready (optionally also paste in a token for an admin user with all scopes set. When that's done press the return key twice:\n""")
print(f"\033[93m\n\n{message}\033[0m\n")
lines = []
while True:
line = input()
Expand All @@ -156,7 +159,8 @@ def main(args):
t = generate_template(environment)
with open('shell-profile', 'w') as f:
f.write(t)


print(f"\033[92m")
print("\n")
print_progress_bar()
print(f"""\n\nConverted Hubot output to "environment.json" file:\n""")
Expand Down