add missing license headers (#1809)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Unai Martinez-Corral · committed by GitHub · parent 4065a33 · Browse files · 38 files·+440 added−18 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
38 files+440 added−18 removed
- other:+440 added−18 removed
Provenance
- Commit
6d978a9- Tree
fb173c7- Author
Unai Martinez-Corral <38422348+umarcor@users.noreply.github.com>- Committer
GitHub <noreply@github.com>- Parent
4065a33
38 files changed+440 added−18 removed
modified:.github/workflows/test.yml+21 added
7 unmodified lines891011121314151617181920212223242526272829303132333411 unmodified lines46474849505152535427 unmodified lines82838485868788899031 unmodified lines7 unmodified lines GO111MODULE: on
jobs:
lic-headers: runs-on: ubuntu-latest steps:
- uses: actions/checkout@v3
- run: >- docker run -v $(pwd):/wrk -w /wrk ghcr.io/google/addlicense -c 'The Cobra Authors' -y '2013-2022' -l apache -ignore '.github/**' -check .
golangci-lint: runs-on: ubuntu-latest steps:
11 unmodified lines with: version: latest args: --verbose
test-unix: strategy: fail-fast: false matrix:27 unmodified lines go install github.com/mitchellh/gox"${_version}"
- run: RICHGO_FORCE_COLOR=1 PATH=$HOME/go/bin/:$PATH make test
test-win: name: MINGW64 defaults: run:31 unmodified linesmodified:doc/cmd_test.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package doc16 17 import (18 "strings"87 unmodified linesmodified:doc/man_docs_test.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package doc16 17 import (18 "bufio"217 unmodified linesmodified:doc/man_docs.go+3 added-2 removed
1-// Copyright 2015 Red Hat Inc. All rights reserved.1+// Copyright 2013-2022 The Cobra Authors2 //3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at6-// http://www.apache.org/licenses/LICENSE-2.06 //7+// http://www.apache.org/licenses/LICENSE-2.08+//9 // Unless required by applicable law or agreed to in writing, software10 // distributed under the License is distributed on an "AS IS" BASIS,11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 // See the License for the specific language governing permissions and234 unmodified linesmodified:doc/man_examples_test.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package doc_test16 17 import (18 "bytes"31 unmodified linesmodified:doc/md_docs_test.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package doc16 17 import (18 "bytes"108 unmodified linesmodified:doc/md_docs.go+3 added-2 removed
1-//Copyright 2015 Red Hat Inc. All rights reserved.1+// Copyright 2013-2022 The Cobra Authors2 //3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at6-// http://www.apache.org/licenses/LICENSE-2.06 //7+// http://www.apache.org/licenses/LICENSE-2.08+//9 // Unless required by applicable law or agreed to in writing, software10 // distributed under the License is distributed on an "AS IS" BASIS,11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 // See the License for the specific language governing permissions and144 unmodified linesmodified:doc/rest_docs_test.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package doc16 17 import (18 "bytes"95 unmodified linesmodified:doc/rest_docs.go+3 added-2 removed
1-//Copyright 2015 Red Hat Inc. All rights reserved.1+// Copyright 2013-2022 The Cobra Authors2 //3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at6-// http://www.apache.org/licenses/LICENSE-2.06 //7+// http://www.apache.org/licenses/LICENSE-2.08+//9 // Unless required by applicable law or agreed to in writing, software10 // distributed under the License is distributed on an "AS IS" BASIS,11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 // See the License for the specific language governing permissions and174 unmodified linesmodified:doc/util.go+3 added-2 removed
1-// Copyright 2015 Red Hat Inc. All rights reserved.1+// Copyright 2013-2022 The Cobra Authors2 //3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at6-// http://www.apache.org/licenses/LICENSE-2.06 //7+// http://www.apache.org/licenses/LICENSE-2.08+//9 // Unless required by applicable law or agreed to in writing, software10 // distributed under the License is distributed on an "AS IS" BASIS,11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 // See the License for the specific language governing permissions and40 unmodified linesmodified:doc/yaml_docs_test.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package doc16 17 import (18 "bytes"83 unmodified linesmodified:doc/yaml_docs.go+3 added-2 removed
1-// Copyright 2016 French Ben. All rights reserved.1+// Copyright 2013-2022 The Cobra Authors2 //3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at6-// http://www.apache.org/licenses/LICENSE-2.06 //7+// http://www.apache.org/licenses/LICENSE-2.08+//9 // Unless required by applicable law or agreed to in writing, software10 // distributed under the License is distributed on an "AS IS" BASIS,11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 // See the License for the specific language governing permissions and163 unmodified linesmodified:.golangci.yml+14 added
1+# Copyright 2013-2022 The Cobra Authors2+#3+# Licensed under the Apache License, Version 2.0 (the "License");4+# you may not use this file except in compliance with the License.5+# You may obtain a copy of the License at6+#7+# http://www.apache.org/licenses/LICENSE-2.08+#9+# Unless required by applicable law or agreed to in writing, software10+# distributed under the License is distributed on an "AS IS" BASIS,11+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+# See the License for the specific language governing permissions and13+# limitations under the License.14+15 run:16 deadline: 5m17 18 linters:44 unmodified linesmodified:active_help_test.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package cobra16 17 import (18 "fmt"382 unmodified linesmodified:active_help.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package cobra16 17 import (18 "fmt"45 unmodified linesmodified:args_test.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package cobra16 17 import (18 "fmt"523 unmodified linesmodified:args.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package cobra16 17 import (18 "fmt"113 unmodified linesmodified:bash_completions_test.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package cobra16 17 import (18 "bytes"271 unmodified linesmodified:bash_completions.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package cobra16 17 import (18 "bytes"694 unmodified linesmodified:bash_completionsV2_test.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package cobra16 17 import (18 "bytes"15 unmodified linesmodified:bash_completionsV2.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package cobra16 17 import (18 "bytes"365 unmodified linesmodified:cobra_test.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package cobra16 17 import (18 "testing"24 unmodified linesmodified:cobra.go+3 added-2 removed
1-// Copyright © 2013 Steve Francia <spf@spf13.com>.1+// Copyright 2013-2022 The Cobra Authors2 //3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at6-// http://www.apache.org/licenses/LICENSE-2.06 //7+// http://www.apache.org/licenses/LICENSE-2.08+//9 // Unless required by applicable law or agreed to in writing, software10 // distributed under the License is distributed on an "AS IS" BASIS,11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 // See the License for the specific language governing permissions and220 unmodified linesmodified:command_notwin.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 //go:build !windows16 // +build !windows17 18 package cobra2 unmodified linesmodified:command_test.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package cobra16 17 import (18 "bytes"2327 unmodified linesmodified:command_win.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 //go:build windows16 // +build windows17 18 package cobra23 unmodified linesmodified:command.go+3 added-2 removed
1-// Copyright © 2013 Steve Francia <spf@spf13.com>.1+// Copyright 2013-2022 The Cobra Authors2 //3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at6-// http://www.apache.org/licenses/LICENSE-2.06 //7+// http://www.apache.org/licenses/LICENSE-2.08+//9 // Unless required by applicable law or agreed to in writing, software10 // distributed under the License is distributed on an "AS IS" BASIS,11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 // See the License for the specific language governing permissions and1697 unmodified linesmodified:completions_test.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package cobra16 17 import (18 "bytes"2875 unmodified linesmodified:completions.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package cobra16 17 import (18 "fmt"828 unmodified linesmodified:fish_completions_test.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package cobra16 17 import (18 "bytes"134 unmodified linesmodified:fish_completions.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package cobra16 17 import (18 "bytes"216 unmodified linesmodified:flag_groups_test.go+3 added-2 removed
1-// Copyright © 2022 Steve Francia <spf@spf13.com>.1+// Copyright 2013-2022 The Cobra Authors2 //3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at6-// http://www.apache.org/licenses/LICENSE-2.06 //7+// http://www.apache.org/licenses/LICENSE-2.08+//9 // Unless required by applicable law or agreed to in writing, software10 // distributed under the License is distributed on an "AS IS" BASIS,11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 // See the License for the specific language governing permissions and140 unmodified linesmodified:flag_groups.go+3 added-2 removed
1-// Copyright © 2022 Steve Francia <spf@spf13.com>.1+// Copyright 2013-2022 The Cobra Authors2 //3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at6-// http://www.apache.org/licenses/LICENSE-2.06 //7+// http://www.apache.org/licenses/LICENSE-2.08+//9 // Unless required by applicable law or agreed to in writing, software10 // distributed under the License is distributed on an "AS IS" BASIS,11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 // See the License for the specific language governing permissions and212 unmodified linesmodified:powershell_completions_test.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package cobra16 17 import (18 "bytes"15 unmodified linesmodified:powershell_completions.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 // The generated scripts require PowerShell v5.0+ (which comes Windows 10, but16 // can be downloaded separately for windows 7 or 8.1).17 18 package cobra284 unmodified linesmodified:shell_completions.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package cobra16 17 import (18 "github.com/spf13/pflag"80 unmodified linesmodified:zsh_completions_test.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package cobra16 17 import (18 "bytes"15 unmodified linesmodified:zsh_completions.go+14 added
1+// Copyright 2013-2022 The Cobra Authors2+//3+// Licensed under the Apache License, Version 2.0 (the "License");4+// you may not use this file except in compliance with the License.5+// You may obtain a copy of the License at6+//7+// http://www.apache.org/licenses/LICENSE-2.08+//9+// Unless required by applicable law or agreed to in writing, software10+// distributed under the License is distributed on an "AS IS" BASIS,11+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12+// See the License for the specific language governing permissions and13+// limitations under the License.14+15 package cobra16 17 import (18 "bytes"283 unmodified lines