#ifndef _CLI_LOAD_COMMAND_H_
#define _CLI_LOAD_COMMAND_H_

#include <command/Command.h>
#include <environment/Environment.h>

#include <common/LibraryLoader.h>

namespace cli {

class LoadCommand : public Command {
	std::string m_libraryName;

public:
	LoadCommand ( std::string libraryName ) : m_libraryName ( std::move ( libraryName ) ) {
	}

	Command::Result run ( Environment & ) const override {
		cli::LibraryLoader::load ( m_libraryName );
		return Command::Result::OK;
	}
};

} /* namespace cli */

#endif /* _CLI_LOAD_COMMAND_H_ */
