refact & client install notes

broken/ef
Paul Schneider 3 years ago
parent 451d810ade
commit 5e74b24439
2 changed files with 24 additions and 13 deletions

@ -52,10 +52,20 @@ sudo systemctl enable isnd
Installer le client : Installer le client :
````bash ````bash
sudo cp -a src/isn/bin/Release/net472/ /usr/local/lib/isn sudo cp -a src/isn/bin/Release/net472/* /usr/local/lib/isn
sudo chown -R root.root /usr/local/lib/isn sudo chown -R root.root /usr/local/lib/isn
sudo chmod +x /usr/local/lib/isn/isn.exe sudo chmod +x /usr/local/lib/isn/isn.exe
sudo cp contrib/isn /usr/local/bin sudo rm -f /usr/local/bin/isn
sudo chmod +x /usr/local/bin sudo cp contrib/isn /usr/local/bin/isn
sudo chmod +x /usr/local/bin/isn
sudo chown root.root /usr/local/bin/isn sudo chown root.root /usr/local/bin/isn
```` ````
## TODO
````bash
isn add
isn set-api-key
isn sources
````

@ -34,7 +34,7 @@ namespace nuget_cli
{ "h|help", "show this message and exit", h => shouldShowSourceHelp = h != null }, { "h|help", "show this message and exit", h => shouldShowSourceHelp = h != null },
}; };
var commandSet = new CommandSet("yaget-cli"); var commandSet = new CommandSet("isn");
var srclst = new Command("list") var srclst = new Command("list")
@ -45,27 +45,28 @@ namespace nuget_cli
{ {
Run = sargs => SourceAdd(sargs) Run = sargs => SourceAdd(sargs)
}; };
var srcCmd = new Command("source") var srcCmd = new Command("sources")
{ {
Run = sargs => Run = sargs =>
{ {
var sourcesCmdSet = new CommandSet("sources")
{
srclst,
srcadd
};
var pargs = sourceoptions.Parse(sargs); var pargs = sourceoptions.Parse(sargs);
if (shouldShowSourceHelp) if (shouldShowSourceHelp)
{ {
// output the options // output the options
Console.WriteLine("Push Options:"); Console.WriteLine("Sources Options:");
sourceoptions.WriteOptionDescriptions(Console.Out); sourceoptions.WriteOptionDescriptions(Console.Out);
return; return;
} }
sourcesCmdSet.Run(pargs);
} }
}; };
var sourceCmdSet = new CommandSet("source")
{
srclst,
srcadd
};
var add = new Command("add") var add = new Command("add")
{ {
Run = sargs => Add(sargs) Run = sargs => Add(sargs)
@ -96,7 +97,7 @@ namespace nuget_cli
Run = sargs => StoreApiKey(sargs) Run = sargs => StoreApiKey(sargs)
}; };
commandSet.Add(setapikey); commandSet.Add(setapikey);
commandSet.Add(srcCmd);
List<string> extra; List<string> extra;
try try

Loading…