OSDN Git Service

all-get,サブコマンドの一部修正および追加
authorttp <ttp@users.sourceforge.jp>
Thu, 1 May 2008 08:44:04 +0000 (08:44 +0000)
committerttp <ttp@users.sourceforge.jp>
Thu, 1 May 2008 08:44:04 +0000 (08:44 +0000)
git-svn-id: http://localhost/svn/AppliStation/trunk@892 34ed2c89-c49f-4a4b-abdb-c318350108cf

all-get/Main.cs

index 6afb569..1442635 100644 (file)
@@ -117,7 +117,7 @@ namespace AllGet
                        tasks.Run();\r
                }\r
                \r
-               public void Upgrade()\r
+               public void CheckUpgrade()\r
                {\r
                        PackageList<Package> packageList = pkgListMan.AvailablePkgList;\r
                        \r
@@ -414,6 +414,7 @@ namespace AllGet
                        Console.WriteLine("Commands:");\r
                        Console.WriteLine("   update - Retrieve new lists of packages");\r
                        Console.WriteLine("   localupdate - Update installed-soft-list only");\r
+                       Console.WriteLine("   checkupgrade - Show upgraded-soft list");\r
                        Console.WriteLine("   search - Search the package list for not a regex pattern");\r
                        Console.WriteLine("   show - Show package detail");\r
                        Console.WriteLine("   cleancache - Clear cached archived file(s)");\r
@@ -439,6 +440,14 @@ namespace AllGet
                        }\r
                }\r
                \r
+               public void Moo()\r
+               {\r
+                       // TODO スーパー牛さんパワー化\r
+                       \r
+                       string executeFileName = System.AppDomain.CurrentDomain.FriendlyName;\r
+                       Console.WriteLine("誰か {0} をスーパー牛さんパワー化してくれ", executeFileName);\r
+               }\r
+               \r
                public static void Main(string[] args)\r
                {\r
                        // アーカイブSYSTEM32をパスに足す\r
@@ -496,8 +505,8 @@ namespace AllGet
                                Array.Copy(args, 1, packages, 0, packages.Length);\r
                                \r
                                mc.Install(packages);\r
-                       } else if (args[0] == "upgrade") {\r
-                               mc.Upgrade();\r
+                       } else if (args[0] == "checkupgrade") {\r
+                               mc.CheckUpgrade();\r
                        } else if (args[0] == "remove") {\r
                                if (args.Length <= 1) {\r
                                        Console.WriteLine("E: Invalid operation remove");\r
@@ -517,6 +526,8 @@ namespace AllGet
                                mc.FooBar();\r
                        } else if (args[0] == "hoge") {\r
                                mc.Hoge();\r
+                       } else if (args[0] == "moo") {\r
+                               mc.Moo();\r
                        } else {\r
                                mc.Help();\r
                                \r