refact & client install notes
This commit is contained in:
16
README.md
16
README.md
@ -52,10 +52,20 @@ sudo systemctl enable isnd
|
||||
Installer le client :
|
||||
|
||||
````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 chmod +x /usr/local/lib/isn/isn.exe
|
||||
sudo cp contrib/isn /usr/local/bin
|
||||
sudo chmod +x /usr/local/bin
|
||||
sudo rm -f /usr/local/bin/isn
|
||||
sudo cp contrib/isn /usr/local/bin/isn
|
||||
sudo chmod +x /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 },
|
||||
};
|
||||
|
||||
var commandSet = new CommandSet("yaget-cli");
|
||||
var commandSet = new CommandSet("isn");
|
||||
|
||||
|
||||
var srclst = new Command("list")
|
||||
@ -45,27 +45,28 @@ namespace nuget_cli
|
||||
{
|
||||
Run = sargs => SourceAdd(sargs)
|
||||
};
|
||||
var srcCmd = new Command("source")
|
||||
var srcCmd = new Command("sources")
|
||||
{
|
||||
Run = sargs =>
|
||||
{
|
||||
|
||||
var sourcesCmdSet = new CommandSet("sources")
|
||||
{
|
||||
srclst,
|
||||
srcadd
|
||||
};
|
||||
var pargs = sourceoptions.Parse(sargs);
|
||||
if (shouldShowSourceHelp)
|
||||
{
|
||||
// output the options
|
||||
Console.WriteLine("Push Options:");
|
||||
Console.WriteLine("Sources Options:");
|
||||
sourceoptions.WriteOptionDescriptions(Console.Out);
|
||||
return;
|
||||
}
|
||||
sourcesCmdSet.Run(pargs);
|
||||
}
|
||||
};
|
||||
|
||||
var sourceCmdSet = new CommandSet("source")
|
||||
{
|
||||
srclst,
|
||||
srcadd
|
||||
};
|
||||
|
||||
var add = new Command("add")
|
||||
{
|
||||
Run = sargs => Add(sargs)
|
||||
@ -96,7 +97,7 @@ namespace nuget_cli
|
||||
Run = sargs => StoreApiKey(sargs)
|
||||
};
|
||||
commandSet.Add(setapikey);
|
||||
|
||||
commandSet.Add(srcCmd);
|
||||
|
||||
List<string> extra;
|
||||
try
|
||||
|
Reference in New Issue
Block a user