Commit e9fbdff6 authored by Loïck Bonniot's avatar Loïck Bonniot

Add demonstrator and platform kernels

parent b09e2cfa
Pipeline #127 passed with stage
......@@ -18,3 +18,11 @@ Configure workspace
go install dfss/...
```
Run dfss modules
----------------
```bash
dfssc help # Client
dfssp help # Plaform
dfssd help # Demonstrator
```
package main
import (
"dfss"
"flag"
"fmt"
"runtime"
)
var (
verbose bool
)
func init() {
flag.BoolVar(&verbose, "v", false, "Print verbose messages")
flag.Usage = func() {
fmt.Println("DFSS demonstrator v" + dfss.Version)
fmt.Println("Debug tool to check remote transmissions")
fmt.Println("\nUsage:")
fmt.Println(" dfssd command [flags]")
fmt.Println("\nThe commands are:")
fmt.Println(" help print this help")
fmt.Println(" version print dfss client version")
fmt.Println("\nFlags:")
flag.PrintDefaults()
fmt.Println()
}
}
func main() {
flag.Parse()
command := flag.Arg(0)
switch command {
case "version":
fmt.Println("v"+dfss.Version, runtime.GOOS, runtime.GOARCH)
default:
flag.Usage()
}
}
package main
import (
"dfss"
"flag"
"fmt"
"runtime"
)
var (
verbose bool
)
func init() {
flag.BoolVar(&verbose, "v", false, "Print verbose messages")
flag.Usage = func() {
fmt.Println("DFSS platform v" + dfss.Version)
fmt.Println("Users and contracts manager")
fmt.Println("\nUsage:")
fmt.Println(" dfssp command [flags]")
fmt.Println("\nThe commands are:")
fmt.Println(" help print this help")
fmt.Println(" version print dfss client version")
fmt.Println("\nFlags:")
flag.PrintDefaults()
fmt.Println()
}
}
func main() {
flag.Parse()
command := flag.Arg(0)
switch command {
case "version":
fmt.Println("v"+dfss.Version, runtime.GOOS, runtime.GOARCH)
default:
flag.Usage()
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment