Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
Command.h 352 B
#ifndef _CLI_COMMAND_H_
#define _CLI_COMMAND_H_

#include <environment/Environment.h>

namespace cli {

class Command {
public:
	enum class Result {
		OK,
		QUIT,
		EXCEPTION,
		ERROR
	};

	virtual ~Command ( ) noexcept {
	}

	virtual Command::Result run ( Environment & environment ) const = 0;
};

} /* namespace cli */

#endif /* _CLI_COMMAND_H_ */