-
Notifications
You must be signed in to change notification settings - Fork 18
/
p4ectl.go
46 lines (39 loc) · 913 Bytes
/
p4ectl.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT license.
* SPDX-License-Identifier: MIT
*/
package cmd
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
var (
verbose bool
debug bool
)
var RootCmd = &cobra.Command{
Use: "maestro",
Short: "maestro",
Long: `
_
/\/\ __ _ ___ ___| |_ _ __ ___
/ \ / _' |/ _ \/ __| __| '__/ _ \
/ /\/\ \ (_| | __/\__ \ |_| | | (_) |
\/ \/\__,_|\___||___/\__|_| \___/
Jumpstart your Edge Journey
`,
Run: func(cmd *cobra.Command, args []string) {
},
}
func Execute(versiong string) {
if err := RootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(-1)
}
}
func init() {
RootCmd.PersistentFlags().BoolVar(&verbose, "verbose", false, "Display verbose tracing info.")
RootCmd.PersistentFlags().BoolVar(&debug, "debug", false, "Turn off retry for debugging.")
}