コード例 #1
0
 public void Register(ICommandRegistry aCommandRegistry)
 {
     aCommandRegistry.AddCommand("install", Guard(Install), "Install (or upgrade) an app from a file.");
     aCommandRegistry.AddCommand("uninstall", Guard(Uninstall), "Uninstall an app by name.");
     aCommandRegistry.AddCommand("listapps", Guard(ListApps), "List installed apps.");
     aCommandRegistry.AddCommand("installnew", Guard(InstallNew), "Install an app from a file.");
     aCommandRegistry.AddCommand("upgrade", Guard(Upgrade), "Upgrade an app from a file. Usage: 'upgrade <appname> <zipfile>'");
 }