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

Function command_and_args_from_cmd

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

Source from the content-addressed store, hash-verified

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

Callers 1

do_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected