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

Function command_and_args_from_cmd

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

Source from the content-addressed store, hash-verified

254
255
256def command_and_args_from_cmd(command_line):
257 args = ''
258 pos = command_line.find(' ')
259 if pos > 0:
260 cmd = command_line[:pos]
261 args = command_line[pos + 1:].strip()
262 else:
263 cmd = command_line.strip()
264
265 return cmd, args
266
267
268_DISALLOWED_COMMAND_CHARS = ('\r', '\n', '\x00')

Callers 1

do_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected