def AddUpdateEnvVarsFlags(parser): """Add flags for setting and removing environment variables. Args: parser: The argument parser. """ map_util.AddUpdateMapFlags( parser, 'env-vars', long_name='environment variables', key_type=EnvVarKeyType, value_type=EnvVarValueType)
def AddBuildEnvVarsFlags(parser): """Add flags for managing build environment variables. Args: parser: The argument parser. """ map_util.AddUpdateMapFlags(parser, 'build-env-vars', long_name='build environment variables', key_type=BuildEnvVarKeyType, value_type=BuildEnvVarValueType)
def SetUp(self): map_util.AddUpdateMapFlags(self.parser, 'food-prices', 'prices of food items', None, int) self.old_map = {'B': 2, 'C': 3, 'D': 4}