Add github endpoint API endpoint and CLI code
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
257fb0b09a
commit
77ecb16166
27 changed files with 2807 additions and 73 deletions
30
cmd/garm-cli/cmd/github.go
Normal file
30
cmd/garm-cli/cmd/github.go
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
package cmd
|
||||
|
||||
import "github.com/spf13/cobra"
|
||||
|
||||
var (
|
||||
endpointName string
|
||||
endpointBaseURL string
|
||||
endpointUploadURL string
|
||||
endpointAPIBaseURL string
|
||||
endpointCACertPath string
|
||||
endpointDescription string
|
||||
)
|
||||
|
||||
// githubCmd represents the the github command. This command has a set
|
||||
// of subcommands that allow configuring and managing GitHub endpoints
|
||||
// and credentials.
|
||||
var githubCmd = &cobra.Command{
|
||||
Use: "github",
|
||||
Aliases: []string{"gh"},
|
||||
SilenceUsage: true,
|
||||
Short: "Manage GitHub resources",
|
||||
Long: `Manage GitHub related resources.
|
||||
|
||||
This command allows you to configure and manage GitHub endpoints and credentials`,
|
||||
Run: nil,
|
||||
}
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(githubCmd)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue