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", RunE: func(cmd *cobra.Command, args []string) error { ctx := context.Background() apiClient, err := apiclient_util.GetApiClient(nil) if err != nil { return err } setGitProviderConfig := apiclient.SetGitProviderConfig{} setGitProviderConfig.BaseApiUrl = new(string) setGitProviderConfig.Username = new(string) gitprovider_view.GitProviderSelectionView(&setGitProviderConfig, nil, false) if setGitProviderConfig.Id == "" { return nil } res, err := apiClient.GitProviderAPI.SetGitProvider(ctx).GitProviderConfig(setGitProviderConfig).Execute() if err != nil { return apiclient_util.HandleErrorResponse(res, err) } views.RenderInfoMessage("Git provider has been registered") return nil }, }
View Source
var GitProviderCmd = &cobra.Command{ Use: "git-providers", Aliases: []string{"git-provider", "gp"}, Short: "Manage Git providers", GroupID: util.SERVER_GROUP, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.