Projects STRLCPY Osintgram Commits ee31c54f
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    osintgram.py
    skipped 77 lines
    78 78   
    79 79   
    80 80  while True:
    81  - if args.command:
    82  - cmd = args.command
    83  - _cmd = commands.get(args.command)
    84  - else:
    85  - signal.signal(signal.SIGINT, signal_handler)
    86  -
    87  - completer = utils.Completer(status.get_commands())
    88  - readline.set_completer_delims(' \t\n;')
    89  - readline.set_completer(completer.complete)
    90  - readline.parse_and_bind('tab: complete')
     81 + signal.signal(signal.SIGINT, signal_handler)
    91 82  
    92  - if(status.is_command_mode()):
    93  - pc.printout(status.get_command() + '> ', pc.GREEN)
    94  - else:
    95  - pc.printout("Run a command: ", pc.YELLOW)
    96  - cmd = input()
     83 + completer = utils.Completer(status.get_commands())
     84 + readline.set_completer_delims(' \t\n;')
     85 + readline.set_completer(completer.complete)
     86 + readline.parse_and_bind('tab: complete')
    97 87   
    98  - if cmd in status.get_commands():
    99  - _cmd = cmd
     88 + if(status.is_command_mode()):
     89 + pc.printout(status.get_command() + '> ', pc.GREEN)
     90 + else:
     91 + pc.printout("Run a command: ", pc.YELLOW)
     92 + cmd = input()
    100 93  
    101  - if status.is_command_mode():
    102  - status.set_subcommand(cmd)
    103  - else:
    104  - status.set_command(cmd)
     94 + if cmd in status.get_commands():
     95 + _cmd = cmd
    105 96   
    106  - commands = status.get_commands()
     97 + if status.is_command_mode():
     98 + status.set_subcommand(cmd)
    107 99   else:
    108  - _cmd = None
     100 + status.set_command(cmd)
     101 + else:
     102 + _cmd = None
    109 103   
    110 104   if _cmd:
    111 105   __import__(status.get_module())
    skipped 16 lines
Please wait...
Page is in error, reload to recover