"remove": resource.resource_op_defaults_set_remove_cmd, "update": resource.resource_op_defaults_set_update_cmd, }, ["resource", "op", "defaults", "set"], ), "update": resource.resource_op_defaults_legacy_cmd, }, ["resource", "op", "defaults"], default_cmd="config", ) return router(lib, argv, modifiers) resource_cmd = create_router( { "help": lambda lib, argv, modifiers: print(usage.resource(argv)), "list": resource.resource_list_available, "describe": resource.resource_list_options, "create": resource.resource_create, "move": resource.resource_move, "move-with-constraint": resource.resource_move_with_constraint, "ban": resource.resource_ban, "clear": resource.resource_unmove_unban, "standards": resource.resource_standards, "providers": resource.resource_providers, "agents": resource.resource_agents, "update": resource.resource_update, "meta": resource.resource_meta, "delete": resource.resource_remove_cmd, "remove": resource.resource_remove_cmd, # TODO remove, deprecated command
from functools import partial from pcs import ( resource, usage, ) from pcs.cli.common.errors import raise_command_replaced from pcs.cli.common.routing import create_router from pcs.cli.resource.relations import show_resource_relations_cmd resource_cmd = create_router( { "help": lambda lib, argv, modifiers: usage.resource(argv), "list": resource.resource_list_available, "describe": resource.resource_list_options, "create": resource.resource_create, "move": resource.resource_move, "ban": resource.resource_ban, "clear": resource.resource_unmove_unban, "standards": resource.resource_standards, "providers": resource.resource_providers, "agents": resource.resource_agents, "update": resource.resource_update, "meta": resource.resource_meta, "delete": resource.resource_remove_cmd, "remove": resource.resource_remove_cmd, # TODO remove, deprecated command # replaced with 'resource status' and 'resource config' "show": resource.resource_show,
from functools import partial from pcs import ( resource, usage, ) from pcs.cli.common.routing import create_router resource_cmd = create_router( { "help": lambda lib, argv, modifiers: usage.resource(argv), "list": resource.resource_list_available, "describe": resource.resource_list_options, "create": resource.resource_create, "move": resource.resource_move, "ban": resource.resource_ban, "clear": resource.resource_unmove_unban, "standards": resource.resource_standards, "providers": resource.resource_providers, "agents": resource.resource_agents, "update": resource.resource_update, "meta": resource.resource_meta, "delete": resource.resource_remove_cmd, "remove": resource.resource_remove_cmd, # TODO remove, deprecated command # replaced with 'resource status' and 'resource config' "show": resource.resource_show, "status": resource.resource_status, "config": resource.resource_config, "group": create_router(