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

Class SetCommand

keepercommander/commands/utils.py:2013–2024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2011
2012
2013class SetCommand(Command):
2014 def get_parser(self):
2015 return set_parser
2016
2017 def execute(self, params, **kwargs):
2018 name = kwargs['name']
2019 value = kwargs.get('value')
2020 if value:
2021 params.environment_variables[name] = value
2022 else:
2023 if name in params.environment_variables:
2024 del params.environment_variables[name]
2025
2026
2027class HelpCommand(Command):

Callers 1

register_commandsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected