-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert dashes in plugin names to underscores (#60)
For dashes to be preserved in a plugin's name, its executable name must convert dashes to underscores. For example a plugin named "foo-bar" would today be linked as: kubectl-foo-bar therefore, it can only be invoked as: kubectl foo bar However, linking the same plugin as: kubectl-foo_bar allows plugin to be called as: kubectl foo-bar kubectl foo_bar - convert OS detection pluginNameToBin() to explicit input for testability - test pluginNameToBin(). Fixes #59.
- Loading branch information
Showing
3 changed files
with
34 additions
and
8 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
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
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