+ main cmd switch
This commit is contained in:
parent
ee4bd1a47f
commit
b600d147fe
17
cmd/dsnet.go
17
cmd/dsnet.go
@ -2,9 +2,26 @@ package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"flag"
|
||||
"github.com/naggie/dsnet"
|
||||
)
|
||||
|
||||
func main() {
|
||||
addCmd := flag.NewFlagSet("add", flag.ExitOnError)
|
||||
|
||||
|
||||
switch os.Args[1] {
|
||||
case "init":
|
||||
|
||||
case "up":
|
||||
|
||||
case "add":
|
||||
|
||||
case "report":
|
||||
|
||||
case "down":
|
||||
|
||||
default:
|
||||
help();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user