Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GitProviderAddCmd = &cobra.Command{ Use: "add", Aliases: []string{"new", "register", "update"}, Short: "Register a Git providers", Run: func(cmd *cobra.Command, args []string) { ctx := context.Background() apiClient, err := apiclient_util.GetApiClient(nil) if err != nil { log.Fatal(err) } gitProviderData := apiclient.GitProvider{} gitProviderData.Id = new(string) gitProviderData.Username = new(string) gitProviderData.Token = new(string) gitProviderData.BaseApiUrl = new(string) gitprovider_view.GitProviderSelectionView(&gitProviderData, nil, false) if *gitProviderData.Id == "" { return } _, err = apiClient.GitProviderAPI.SetGitProvider(ctx).GitProviderConfig(gitProviderData).Execute() if err != nil { log.Fatal(err) } views.RenderInfoMessage("Git provider has been registered") }, }
View Source
var GitProviderCmd = &cobra.Command{ Use: "git-providers", Aliases: []string{"git-provider", "gp"}, Short: "Manage Git providers", }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.