-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add completion command skeleton for outputting completion files in th…
…eir respective directories
- Loading branch information
1 parent
b371f54
commit 2e19bbd
Showing
9 changed files
with
29 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package configs | ||
package cli | ||
|
||
import ( | ||
"fmt" | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package command | ||
|
||
const ( | ||
bashBaseDir = "/usr/share/bash-completion/completions/" | ||
zshBaseDir = "/usr/share/zsh/site-functions/" | ||
) | ||
|
||
type CompletionCmd struct{} | ||
|
||
func NewCompletionCmd() CompletionCmd { | ||
return CompletionCmd{} | ||
} | ||
|
||
func (c CompletionCmd) Run(args ...string) int { | ||
return 0 | ||
} | ||
|
||
func (c CompletionCmd) Help() string { | ||
return "" | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.