command: Introduce struct command_context.