#ifndef _CLI_LOAD_COMMAND_H_
#define _CLI_LOAD_COMMAND_H_

#include <ast/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 ) ) {
	}

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

} /* namespace cli */

#endif /* _CLI_LOAD_COMMAND_H_ */
