MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / command_and_args_from_cmd

Function command_and_args_from_cmd

keepercommander/cli.py:240–249  ·  view source on GitHub ↗
(command_line)

Source from the content-addressed store, hash-verified

238
239
240def command_and_args_from_cmd(command_line):
241 args = ''
242 pos = command_line.find(' ')
243 if pos > 0:
244 cmd = command_line[:pos]
245 args = command_line[pos + 1:].strip()
246 else:
247 cmd = command_line.strip()
248
249 return cmd, args
250
251
252_DISALLOWED_COMMAND_CHARS = ('\r', '\n', '\x00')

Callers 1

do_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected