#include <softbus_command/CommandContext.h>

namespace softbus::command {

std::string commandStateToString(CommandState state)
{
    switch (state) {
    case CommandState::Validated: return "Validated";
    case CommandState::Dispatched: return "Dispatched";
    case CommandState::Delivered: return "Delivered";
    case CommandState::Executing: return "Executing";
    case CommandState::Succeeded: return "Succeeded";
    case CommandState::Failed: return "Failed";
    case CommandState::Timeout: return "Timeout";
    case CommandState::Rejected: return "Rejected";
    case CommandState::Cancelled: return "Cancelled";
    default: return "Created";
    }
}

} // namespace softbus::command
