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

Function tokenize_command_args

keepercommander/commands/base.py:716–721  ·  view source on GitHub ↗

Tokenize command arguments using the same transforms as Command.execute_args.

(args, envvars=None)

Source from the content-addressed store, hash-verified

714
715
716def tokenize_command_args(args, envvars=None):
717 """Tokenize command arguments using the same transforms as Command.execute_args."""
718 args = '' if args is None else args
719 if envvars is not None:
720 args = expand_cmd_args(args, envvars)
721 return shlex.split(normalize_output_param(args))
722
723
724def as_boolean(value, default=None): # type: (Any, Optional[bool]) -> bool

Callers 2

execute_argsMethod · 0.85

Calls 2

expand_cmd_argsFunction · 0.85
normalize_output_paramFunction · 0.85

Tested by

no test coverage detected