void LoadConfigItems () { OperationFunc f = new OperationFunc (LoadConfigItem); if (project.Operate ("/", OperationScope.Everywhere, "config", f)) { // FIXME Console.Error.WriteLine ("Error loading configuration items!"); } }
public WhatToDoNext DoConfigMode () { func = new OperationFunc (ConfigOperation); select_tag = "config"; scope = OperationScope.Everywhere; return Check (SetMajorMode ("configure") || SetOperation ("configure")); }
public WhatToDoNext DoXmlExportMode (string file) { func = new OperationFunc (ExportAsXml); select_tag = null; if (file == null || file.Length == 0) export_writer = new XmlTextWriter (Console.Out); else export_writer = new XmlTextWriter (file, System.Text.Encoding.Default); export_writer.Formatting = Formatting.Indented; return Check (SetMajorMode ("XML export") || SetOperation ("XML export")); }
public WhatToDoNext DoDistMode (string dir) { func = new OperationFunc (WrenchOperations.Distribute); distdir = dir; select_tag = null; dist_mode = true; return Check (SetMajorMode ("distribute") || SetOperation ("distribute")); }
public WhatToDoNext DoUninstallMode () { #if EXPERIMENTAL_INSTALL func = new OperationFunc (DoRemoteInstall); #else func = new OperationFunc (WrenchOperations.Uninstall); #endif //select_tag = null; install_mode = true; install_is_uninstall = true; return Check (SetMajorMode ("uninstall") || SetOperation ("uninstall")); }
public WhatToDoNext DoShowMode () { func = new OperationFunc (ShowOperation); return Check (SetOperation ("show")); }
public WhatToDoNext DoDescribeMode () { func = new OperationFunc (DescribeInstall); return Check (SetOperation ("describe installation")); }
public WhatToDoNext DoForceMode () { func = new OperationFunc (WrenchOperations.ForceBuild); return Check (SetOperation ("force build")); }
public WhatToDoNext DoUncacheMode () { func = new OperationFunc (WrenchOperations.Uncache); return Check (SetOperation ("uncache")); }
public WhatToDoNext DoCleanMode () { func = new OperationFunc (WrenchOperations.Clean); return Check (SetOperation ("clean")); }
public WhatToDoNext DoListMode () { func = new OperationFunc (PrintOperation); return Check (SetOperation ("list")); }
public MBuildClient () : base () { BreakSingleDashManyLettersIntoManyOptions = true; ParsingMode = OptionsParsingMode.Linux; numbuilt = 0; numskipped = 0; numcleaned = 0; numdisted = 0; numinstalled = 0; func = new OperationFunc (WrenchOperations.Build); }