#ifndef _CLI_UNLOAD_COMMAND_H_
#define _CLI_UNLOAD_COMMAND_H_

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

#include <common/LibraryLoader.h>

namespace cli {

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

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

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

} /* namespace cli */

#endif /* _CLI_UNLOAD_COMMAND_H_ */
