Add github endpoint API endpoint and CLI code

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2024-04-18 16:50:46 +00:00
parent 257fb0b09a
commit 77ecb16166
27 changed files with 2807 additions and 73 deletions

View 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)
}