Skip to content

Commit 3eda508

Browse files
authored
Merge pull request #32 from tucksaun/fix/completion-scripts-comments
fix: fix shell completions script template to remove license
2 parents 79194da + dd87c21 commit 3eda508

File tree

3 files changed

+78
-66
lines changed

3 files changed

+78
-66
lines changed

resources/completion.bash

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
1-
# Copyright (c) 2021-present Fabien Potencier <[email protected]>
2-
#
3-
# This file is part of Symfony CLI project
4-
#
5-
# This program is free software: you can redistribute it and/or modify
6-
# it under the terms of the GNU Affero General Public License as
7-
# published by the Free Software Foundation, either version 3 of the
8-
# License, or (at your option) any later version.
9-
#
10-
# This program is distributed in the hope that it will be useful,
11-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13-
# GNU Affero General Public License for more details.
14-
#
15-
# You should have received a copy of the GNU Affero General Public License
16-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
17-
#
18-
# Bash completions for the CLI binary
19-
#
20-
# References:
21-
# - https://github.com/posener/complete/blob/master/install/bash.go
22-
#
1+
{{- /*
2+
Copyright (c) 2021-present Fabien Potencier <[email protected]>
3+
4+
This file is part of Symfony CLI project
5+
6+
This program is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU Affero General Public License as
8+
published by the Free Software Foundation, either version 3 of the
9+
License, or (at your option) any later version.
10+
11+
This program is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU Affero General Public License for more details.
15+
16+
You should have received a copy of the GNU Affero General Public License
17+
along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
*/ -}}
19+
20+
{{- /*
21+
Bash completions for github.com/symfony-cli/console based projects
22+
23+
References:
24+
- https://github.com/posener/complete/blob/master/install/bash.go
25+
*/ -}}
26+
27+
# Bash completions for {{ .App.HelpName }}
2328

2429
complete -C "{{ .CurrentBinaryPath }} self:autocomplete" {{ .App.HelpName }}

resources/completion.fish

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
1-
# Copyright (c) 2021-present Fabien Potencier <[email protected]>
2-
#
3-
# This file is part of Symfony CLI project
4-
#
5-
# This program is free software: you can redistribute it and/or modify
6-
# it under the terms of the GNU Affero General Public License as
7-
# published by the Free Software Foundation, either version 3 of the
8-
# License, or (at your option) any later version.
9-
#
10-
# This program is distributed in the hope that it will be useful,
11-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13-
# GNU Affero General Public License for more details.
14-
#
15-
# You should have received a copy of the GNU Affero General Public License
16-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
17-
#
18-
# Fish completions for the CLI binary
19-
#
20-
# References:
21-
# - https://github.com/posener/complete/blob/master/install/fish.go
22-
#
1+
{{- /*
2+
Copyright (c) 2021-present Fabien Potencier <[email protected]>
3+
4+
This file is part of Symfony CLI project
5+
6+
This program is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU Affero General Public License as
8+
published by the Free Software Foundation, either version 3 of the
9+
License, or (at your option) any later version.
10+
11+
This program is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU Affero General Public License for more details.
15+
16+
You should have received a copy of the GNU Affero General Public License
17+
along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
*/ -}}
19+
20+
{{- /*
21+
Fish completions for github.com/symfony-cli/console based projects
22+
23+
References:
24+
- https://github.com/posener/complete/blob/master/install/fish.go
25+
*/ -}}
26+
# Fish completions for {{ .App.HelpName }}
2327

2428
function __complete_{{ .App.HelpName }}
2529
set -lx COMP_LINE (commandline -cp)

resources/completion.zsh

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,31 @@
1+
{{- /*
2+
Copyright (c) 2021-present Fabien Potencier <[email protected]>
3+
4+
This file is part of Symfony CLI project
5+
6+
This program is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU Affero General Public License as
8+
published by the Free Software Foundation, either version 3 of the
9+
License, or (at your option) any later version.
10+
11+
This program is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU Affero General Public License for more details.
15+
16+
You should have received a copy of the GNU Affero General Public License
17+
along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
*/ -}}
19+
20+
{{- /*
21+
ZSH completions for github.com/symfony-cli/console based projects
22+
23+
References:
24+
- https://github.com/posener/complete/blob/master/install/zsh.go
25+
*/ -}}
126
#compdef {{ .App.HelpName }}
227

3-
# Copyright (c) 2021-present Fabien Potencier <[email protected]>
4-
#
5-
# This file is part of Symfony CLI project
6-
#
7-
# This program is free software: you can redistribute it and/or modify
8-
# it under the terms of the GNU Affero General Public License as
9-
# published by the Free Software Foundation, either version 3 of the
10-
# License, or (at your option) any later version.
11-
#
12-
# This program is distributed in the hope that it will be useful,
13-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15-
# GNU Affero General Public License for more details.
16-
#
17-
# You should have received a copy of the GNU Affero General Public License
18-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
19-
20-
#
2128
# zsh completions for {{ .App.HelpName }}
22-
#
23-
# References:
24-
# - https://github.com/posener/complete/blob/master/install/zsh.go
25-
#
2629

2730
autoload -U +X bashcompinit && bashcompinit
2831
complete -o nospace -C "{{ .CurrentBinaryInvocation }} self:autocomplete" {{ .App.HelpName }}

0 commit comments

Comments
 (0)