|
11 | 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12 | 12 | // See the License for the specific language governing permissions and
|
13 | 13 | // limitations under the License.
|
14 |
| - |
15 |
| -// Copyright 2021 The Codefresh Authors. |
16 |
| -// |
17 |
| -// Licensed under the Apache License, Version 2.0 (the "License"); |
18 |
| -// you may not use this file except in compliance with the License. |
19 |
| -// You may obtain a copy of the License at |
20 |
| -// |
21 |
| -// http://www.apache.org/licenses/LICENSE-2.0 |
22 |
| -// |
23 |
| -// Unless required by applicable law or agreed to in writing, software |
24 |
| -// distributed under the License is distributed on an "AS IS" BASIS, |
25 |
| -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
26 |
| -// See the License for the specific language governing permissions and |
27 |
| -// limitations under the License. |
28 |
| - |
29 | 14 | package commands
|
30 | 15 |
|
31 | 16 | import (
|
|
73 | 58 | CreateDemoResources bool
|
74 | 59 | Exclude string
|
75 | 60 | Include string
|
76 |
| - IngressHost string |
| 61 | + IngressHost string |
77 | 62 | }
|
78 | 63 |
|
79 | 64 | GitSourceDeleteOptions struct {
|
@@ -109,6 +94,7 @@ func NewGitSourceCommand() *cobra.Command {
|
109 | 94 | Use: "git-source",
|
110 | 95 | Short: "Manage git-sources of Codefresh runtimes",
|
111 | 96 | PersistentPreRunE: cfConfig.RequireAuthentication,
|
| 97 | + Args: cobra.NoArgs, // Workaround for subcommand usage errors. See: https://github.com/spf13/cobra/issues/706 |
112 | 98 | Run: func(cmd *cobra.Command, args []string) {
|
113 | 99 | cmd.HelpFunc()(cmd, args)
|
114 | 100 | exit(1)
|
@@ -699,7 +685,7 @@ func createGithubExampleIngress() *netv1.Ingress {
|
699 | 685 | ServiceName: store.Get().GithubExampleEventSourceObjectName + "-eventsource-svc",
|
700 | 686 | ServicePort: store.Get().GithubExampleEventSourceServicePort,
|
701 | 687 | },
|
702 |
| - }, }) |
| 688 | + }}) |
703 | 689 | }
|
704 | 690 |
|
705 | 691 | func getRepoOwnerAndNameFromRepoURL(repoURL string) (owner string, name string) {
|
|
0 commit comments