File tree 18 files changed +213
-47
lines changed
18 files changed +213
-47
lines changed Original file line number Diff line number Diff line change 7
7
8
8
env :
9
9
REGISTRY : ghcr.io
10
+ BINARY_NAME : ${{ github.repository }}
10
11
IMAGE_NAME : ${{ github.repository }}
11
12
TAG : ${{ github.ref_name }}
12
13
@@ -30,14 +31,14 @@ jobs:
30
31
GOARCH : ${{ matrix.goarch }}
31
32
shell : bash
32
33
run : |
33
- GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o git2kube -ldflags '-w -s -X 'github.com/wandera/git2kube /cmd.Version=${{ env.TAG }} \
34
+ GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o ${{ env.BINARY_NAME }} -ldflags '-w -s -X 'github.com/wandera/${{ env.BINARY_NAME }} /cmd.Version=${{ env.TAG }} \
34
35
&& mkdir dist \
35
- && mv git2kube dist/git2kube \
36
- && tar -czvf git2kube -${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz -C dist/ .
36
+ && mv ${{ env.BINARY_NAME }} dist/${{ env.BINARY_NAME }} \
37
+ && tar -czvf ${{ env.BINARY_NAME }} -${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz -C dist/ .
37
38
- name : Release
38
39
uses : wandera/action-gh-release@v1
39
40
with :
40
- files : git2kube -${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz
41
+ files : ${{ env.BINARY_NAME }} -${{ matrix.goos }}-${{ matrix.goarch }}.tar.gz
41
42
42
43
release-docker-image :
43
44
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ Commandline tool for loading files from git repository into K8s ConfigMap
15
15
16
16
### SEE ALSO
17
17
18
+ * [ git2kube completion] ( git2kube_completion.md ) - Generate the autocompletion script for the specified shell
18
19
* [ git2kube gendoc] ( git2kube_gendoc.md ) - Generates documentation for this tool in Markdown format
19
20
* [ git2kube load] ( git2kube_load.md ) - Loads files from git repository into target
20
21
* [ git2kube version] ( git2kube_version.md ) - Print the version information
Original file line number Diff line number Diff line change
1
+ ## git2kube completion
2
+
3
+ Generate the autocompletion script for the specified shell
4
+
5
+ ### Synopsis
6
+
7
+ Generate the autocompletion script for git2kube for the specified shell.
8
+ See each sub-command's help for details on how to use the generated script.
9
+
10
+
11
+ ### Options
12
+
13
+ ```
14
+ -h, --help help for completion
15
+ ```
16
+
17
+ ### Options inherited from parent commands
18
+
19
+ ```
20
+ -l, --log-level string command log level (options: [panic fatal error warning info debug trace]) (default "info")
21
+ ```
22
+
23
+ ### SEE ALSO
24
+
25
+ * [ git2kube] ( git2kube.md ) - Git to ConfigMap conversion tool
26
+ * [ git2kube completion bash] ( git2kube_completion_bash.md ) - Generate the autocompletion script for bash
27
+ * [ git2kube completion fish] ( git2kube_completion_fish.md ) - Generate the autocompletion script for fish
28
+ * [ git2kube completion powershell] ( git2kube_completion_powershell.md ) - Generate the autocompletion script for powershell
29
+ * [ git2kube completion zsh] ( git2kube_completion_zsh.md ) - Generate the autocompletion script for zsh
30
+
Original file line number Diff line number Diff line change
1
+ ## git2kube completion bash
2
+
3
+ Generate the autocompletion script for bash
4
+
5
+ ### Synopsis
6
+
7
+ Generate the autocompletion script for the bash shell.
8
+
9
+ This script depends on the 'bash-completion' package.
10
+ If it is not installed already, you can install it via your OS's package manager.
11
+
12
+ To load completions in your current shell session:
13
+
14
+ source <(git2kube completion bash)
15
+
16
+ To load completions for every new session, execute once:
17
+
18
+ #### Linux:
19
+
20
+ git2kube completion bash > /etc/bash_completion.d/git2kube
21
+
22
+ #### macOS:
23
+
24
+ git2kube completion bash > $(brew --prefix)/etc/bash_completion.d/git2kube
25
+
26
+ You will need to start a new shell for this setup to take effect.
27
+
28
+
29
+ ```
30
+ git2kube completion bash
31
+ ```
32
+
33
+ ### Options
34
+
35
+ ```
36
+ -h, --help help for bash
37
+ --no-descriptions disable completion descriptions
38
+ ```
39
+
40
+ ### Options inherited from parent commands
41
+
42
+ ```
43
+ -l, --log-level string command log level (options: [panic fatal error warning info debug trace]) (default "info")
44
+ ```
45
+
46
+ ### SEE ALSO
47
+
48
+ * [ git2kube completion] ( git2kube_completion.md ) - Generate the autocompletion script for the specified shell
49
+
Original file line number Diff line number Diff line change
1
+ ## git2kube completion fish
2
+
3
+ Generate the autocompletion script for fish
4
+
5
+ ### Synopsis
6
+
7
+ Generate the autocompletion script for the fish shell.
8
+
9
+ To load completions in your current shell session:
10
+
11
+ git2kube completion fish | source
12
+
13
+ To load completions for every new session, execute once:
14
+
15
+ git2kube completion fish > ~/.config/fish/completions/git2kube.fish
16
+
17
+ You will need to start a new shell for this setup to take effect.
18
+
19
+
20
+ ```
21
+ git2kube completion fish [flags]
22
+ ```
23
+
24
+ ### Options
25
+
26
+ ```
27
+ -h, --help help for fish
28
+ --no-descriptions disable completion descriptions
29
+ ```
30
+
31
+ ### Options inherited from parent commands
32
+
33
+ ```
34
+ -l, --log-level string command log level (options: [panic fatal error warning info debug trace]) (default "info")
35
+ ```
36
+
37
+ ### SEE ALSO
38
+
39
+ * [ git2kube completion] ( git2kube_completion.md ) - Generate the autocompletion script for the specified shell
40
+
Original file line number Diff line number Diff line change
1
+ ## git2kube completion powershell
2
+
3
+ Generate the autocompletion script for powershell
4
+
5
+ ### Synopsis
6
+
7
+ Generate the autocompletion script for powershell.
8
+
9
+ To load completions in your current shell session:
10
+
11
+ git2kube completion powershell | Out-String | Invoke-Expression
12
+
13
+ To load completions for every new session, add the output of the above command
14
+ to your powershell profile.
15
+
16
+
17
+ ```
18
+ git2kube completion powershell [flags]
19
+ ```
20
+
21
+ ### Options
22
+
23
+ ```
24
+ -h, --help help for powershell
25
+ --no-descriptions disable completion descriptions
26
+ ```
27
+
28
+ ### Options inherited from parent commands
29
+
30
+ ```
31
+ -l, --log-level string command log level (options: [panic fatal error warning info debug trace]) (default "info")
32
+ ```
33
+
34
+ ### SEE ALSO
35
+
36
+ * [ git2kube completion] ( git2kube_completion.md ) - Generate the autocompletion script for the specified shell
37
+
Original file line number Diff line number Diff line change
1
+ ## git2kube completion zsh
2
+
3
+ Generate the autocompletion script for zsh
4
+
5
+ ### Synopsis
6
+
7
+ Generate the autocompletion script for the zsh shell.
8
+
9
+ If shell completion is not already enabled in your environment you will need
10
+ to enable it. You can execute the following once:
11
+
12
+ echo "autoload -U compinit; compinit" >> ~/.zshrc
13
+
14
+ To load completions in your current shell session:
15
+
16
+ source <(git2kube completion zsh)
17
+
18
+ To load completions for every new session, execute once:
19
+
20
+ #### Linux:
21
+
22
+ git2kube completion zsh > "${fpath[1]}/_git2kube"
23
+
24
+ #### macOS:
25
+
26
+ git2kube completion zsh > $(brew --prefix)/share/zsh/site-functions/_git2kube
27
+
28
+ You will need to start a new shell for this setup to take effect.
29
+
30
+
31
+ ```
32
+ git2kube completion zsh [flags]
33
+ ```
34
+
35
+ ### Options
36
+
37
+ ```
38
+ -h, --help help for zsh
39
+ --no-descriptions disable completion descriptions
40
+ ```
41
+
42
+ ### Options inherited from parent commands
43
+
44
+ ```
45
+ -l, --log-level string command log level (options: [panic fatal error warning info debug trace]) (default "info")
46
+ ```
47
+
48
+ ### SEE ALSO
49
+
50
+ * [ git2kube completion] ( git2kube_completion.md ) - Generate the autocompletion script for the specified shell
51
+
Original file line number Diff line number Diff line change 2
2
3
3
Generates documentation for this tool in Markdown format
4
4
5
- ### Synopsis
6
-
7
- Generates documentation for this tool in Markdown format
8
-
9
5
```
10
6
git2kube gendoc [flags]
11
7
```
Original file line number Diff line number Diff line change 2
2
3
3
Loads files from git repository into target
4
4
5
- ### Synopsis
6
-
7
- Loads files from git repository into target
8
-
9
5
### Options
10
6
11
7
```
Original file line number Diff line number Diff line change 2
2
3
3
Loads files from git repository into ConfigMap
4
4
5
- ### Synopsis
6
-
7
- Loads files from git repository into ConfigMap
8
-
9
5
```
10
6
git2kube load configmap [flags]
11
7
```
Original file line number Diff line number Diff line change 2
2
3
3
Loads files from git repository into Folder
4
4
5
- ### Synopsis
6
-
7
- Loads files from git repository into Folder
8
-
9
5
```
10
6
git2kube load folder [flags]
11
7
```
Original file line number Diff line number Diff line change 2
2
3
3
Loads files from git repository into Secret
4
4
5
- ### Synopsis
6
-
7
- Loads files from git repository into Secret
8
-
9
5
```
10
6
git2kube load secret [flags]
11
7
```
Original file line number Diff line number Diff line change 2
2
3
3
Print the version information
4
4
5
- ### Synopsis
6
-
7
- Print the version information
8
-
9
5
```
10
6
git2kube version [flags]
11
7
```
Original file line number Diff line number Diff line change 2
2
3
3
Runs watcher that periodically check the provided repository
4
4
5
- ### Synopsis
6
-
7
- Runs watcher that periodically check the provided repository
8
-
9
5
### Options
10
6
11
7
```
Original file line number Diff line number Diff line change 2
2
3
3
Runs watcher that periodically check the provided repository and updates K8s ConfigMap accordingly
4
4
5
- ### Synopsis
6
-
7
- Runs watcher that periodically check the provided repository and updates K8s ConfigMap accordingly
8
-
9
5
```
10
6
git2kube watch configmap [flags]
11
7
```
Original file line number Diff line number Diff line change 2
2
3
3
Runs watcher that periodically check the provided repository and updates target folder accordingly
4
4
5
- ### Synopsis
6
-
7
- Runs watcher that periodically check the provided repository and updates target folder accordingly
8
-
9
5
```
10
6
git2kube watch folder [flags]
11
7
```
Original file line number Diff line number Diff line change 2
2
3
3
Runs watcher that periodically check the provided repository and updates K8s Secret accordingly
4
4
5
- ### Synopsis
6
-
7
- Runs watcher that periodically check the provided repository and updates K8s Secret accordingly
8
-
9
5
```
10
6
git2kube watch secret [flags]
11
7
```
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments