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

Method execute

keepercommander/commands/utils.py:2079–2093  ·  view source on GitHub ↗
(self, params, **kwargs)

Source from the content-addressed store, hash-verified

2077 return echo_parser
2078
2079 def execute(self, params, **kwargs):
2080 argument = kwargs.get('argument')
2081 if argument:
2082 print(argument)
2083 else:
2084 envs = {LAST_RECORD_UID, LAST_FOLDER_UID, LAST_SHARED_FOLDER_UID}
2085 for name in params.environment_variables:
2086 envs.add(name)
2087 names = [x for x in envs]
2088 names.sort()
2089 for name in names:
2090 if name in params.environment_variables:
2091 print('${{{0}}} = "{1}"'.format(name, params.environment_variables[name] ))
2092 else:
2093 print('${{{0}}} ='.format(name))
2094
2095
2096class SetCommand(Command):

Callers

nothing calls this directly

Calls 3

formatMethod · 0.80
getMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected