From 56e4b6c5261a52e0b27fc5a3ccfae4c266cebdfe Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Tue, 18 Apr 2023 22:07:14 +0100 Subject: [PATCH] gives the store-api-key some options --- src/isn/Program.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/isn/Program.cs b/src/isn/Program.cs index 0c41d7a..20391a0 100644 --- a/src/isn/Program.cs +++ b/src/isn/Program.cs @@ -176,13 +176,16 @@ namespace isn } }; + + var setapikey = new Command("store-api-key", "Store this API key") { Run = sargs => StoreApiKey(sargs) }; - - commandSet.Add(pushCmd); + setapikey.Options = pushoptions; + commandSet.Add(setapikey); + commandSet.Add(pushCmd); commandSet.Add(srcCmd); commandSet.Add(showCommand); @@ -214,6 +217,8 @@ namespace isn Console.WriteLine("isn version " + GitVersionInformation.AssemblySemFileVer); } + + return commandSet.Run(args); }