usage of IPFS http api for listing server

This commit is contained in:
2020-12-30 00:53:20 +04:00
parent c8b1a5bbba
commit 6ad32189b0
4 changed files with 121 additions and 71 deletions

15
main.go
View File

@@ -30,6 +30,7 @@ func main() {
/*
Flags if the client mode is selected:
------------------------------------------------------------------
(run task)
OS: Operating system name to create the VM
Pull Location: Location to pull the OS image
run script: Script to run the task (i.e binary file preferred)
@@ -56,19 +57,7 @@ func main() {
},
Action: func(c *cli.Context) error {
/*
Example usage:
name := "someone"
if c.NArg() > 0 {
name = c.Args().Get(0)
}
if language == "spanish" {
fmt.Println("Hola", name)
} else {
fmt.Println("Hello", name)
}
return nil
*/
/* action when certain flags are selected */
if Run_script == "None" {
fmt.Println("script not excuted as run script not selected")
}