protected override void HandleInternal(CommandLine commandLine, IRemoteClient remoteClient) { var moduleName = commandLine.Arguments.FirstOrDefault(x => x.Name == "unknown"); if (moduleName == null) { WriteWarning("You should define the module name."); } else { var moduleDecorator = new ModuleDecorator(remoteClient); moduleDecorator.UnloadModule(moduleName.Value); } }
protected override void HandleInternal(CommandLine commandLine, IRemoteClient remoteClient) { var moduleDecorator = new ModuleDecorator(remoteClient); var modules = moduleDecorator.GetIntalledModules(); foreach (var moduleState in modules) { WriteInfo("{0} {1} {2}", moduleState.Name.PadLeft(15), moduleState.Version.PadLeft(15), moduleState.IsLoaded.ToString().PadLeft(15)); } }