-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1106 from rsteube/tmux-subcommands
tmux: generated subcommands
- Loading branch information
Showing
82 changed files
with
1,854 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var attachSessionCmd = &cobra.Command{ | ||
Use: "attach-session", | ||
Short: "", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(attachSessionCmd).Standalone() | ||
|
||
attachSessionCmd.Flags().BoolS("E", "E", false, "TODO description") | ||
attachSessionCmd.Flags().StringS("c", "c", "", "working-directory") | ||
attachSessionCmd.Flags().BoolS("d", "d", false, "TODO description") | ||
attachSessionCmd.Flags().StringS("f", "f", "", "flags") | ||
attachSessionCmd.Flags().BoolS("r", "r", false, "TODO description") | ||
attachSessionCmd.Flags().StringS("t", "t", "", "target-session") | ||
attachSessionCmd.Flags().BoolS("x", "x", false, "TODO description") | ||
rootCmd.AddCommand(attachSessionCmd) | ||
} |
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,22 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var bindKeyCmd = &cobra.Command{ | ||
Use: "bind-key", | ||
Short: "", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(bindKeyCmd).Standalone() | ||
|
||
bindKeyCmd.Flags().StringS("N", "N", "", "note") | ||
bindKeyCmd.Flags().StringS("T", "T", "", "key-table") | ||
bindKeyCmd.Flags().BoolS("n", "n", false, "TODO description") | ||
bindKeyCmd.Flags().BoolS("r", "r", false, "TODO description") | ||
rootCmd.AddCommand(bindKeyCmd) | ||
} |
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,26 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var breakPaneCmd = &cobra.Command{ | ||
Use: "break-pane", | ||
Short: "", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(breakPaneCmd).Standalone() | ||
|
||
breakPaneCmd.Flags().StringS("F", "F", "", "format") | ||
breakPaneCmd.Flags().BoolS("P", "P", false, "TODO description") | ||
breakPaneCmd.Flags().BoolS("a", "a", false, "TODO description") | ||
breakPaneCmd.Flags().BoolS("b", "b", false, "TODO description") | ||
breakPaneCmd.Flags().BoolS("d", "d", false, "TODO description") | ||
breakPaneCmd.Flags().StringS("n", "n", "", "window-name") | ||
breakPaneCmd.Flags().StringS("s", "s", "", "src-pane") | ||
breakPaneCmd.Flags().StringS("t", "t", "", "dst-window") | ||
rootCmd.AddCommand(breakPaneCmd) | ||
} |
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,30 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var capturePaneCmd = &cobra.Command{ | ||
Use: "capture-pane", | ||
Short: "", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(capturePaneCmd).Standalone() | ||
|
||
capturePaneCmd.Flags().BoolS("C", "C", false, "TODO description") | ||
capturePaneCmd.Flags().StringS("E", "E", "", "end-line") | ||
capturePaneCmd.Flags().BoolS("J", "J", false, "TODO description") | ||
capturePaneCmd.Flags().BoolS("N", "N", false, "TODO description") | ||
capturePaneCmd.Flags().BoolS("P", "P", false, "TODO description") | ||
capturePaneCmd.Flags().StringS("S", "S", "", "start-line") | ||
capturePaneCmd.Flags().BoolS("a", "a", false, "TODO description") | ||
capturePaneCmd.Flags().StringS("b", "b", "", "buffer-name") | ||
capturePaneCmd.Flags().BoolS("e", "e", false, "TODO description") | ||
capturePaneCmd.Flags().BoolS("p", "p", false, "TODO description") | ||
capturePaneCmd.Flags().BoolS("q", "q", false, "TODO description") | ||
capturePaneCmd.Flags().StringS("t", "t", "", "target-pane") | ||
rootCmd.AddCommand(capturePaneCmd) | ||
} |
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,23 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var chooseBufferCmd = &cobra.Command{ | ||
Use: "choose-buffer", | ||
Short: "", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(chooseBufferCmd).Standalone() | ||
|
||
chooseBufferCmd.Flags().StringS("F", "F", "", "format") | ||
chooseBufferCmd.Flags().StringS("K", "K", "", "key-format") | ||
chooseBufferCmd.Flags().StringS("O", "O", "", "sort-order") | ||
chooseBufferCmd.Flags().StringS("f", "f", "", "filter") | ||
chooseBufferCmd.Flags().StringS("t", "t", "", "target-pane") | ||
rootCmd.AddCommand(chooseBufferCmd) | ||
} |
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,23 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var chooseClientCmd = &cobra.Command{ | ||
Use: "choose-client", | ||
Short: "", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(chooseClientCmd).Standalone() | ||
|
||
chooseClientCmd.Flags().StringS("F", "F", "", "format") | ||
chooseClientCmd.Flags().StringS("K", "K", "", "key-format") | ||
chooseClientCmd.Flags().StringS("O", "O", "", "sort-order") | ||
chooseClientCmd.Flags().StringS("f", "f", "", "filter") | ||
chooseClientCmd.Flags().StringS("t", "t", "", "target-pane") | ||
rootCmd.AddCommand(chooseClientCmd) | ||
} |
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,23 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var chooseTreeCmd = &cobra.Command{ | ||
Use: "choose-tree", | ||
Short: "", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(chooseTreeCmd).Standalone() | ||
|
||
chooseTreeCmd.Flags().StringS("F", "F", "", "format") | ||
chooseTreeCmd.Flags().StringS("K", "K", "", "key-format") | ||
chooseTreeCmd.Flags().StringS("O", "O", "", "sort-order") | ||
chooseTreeCmd.Flags().StringS("f", "f", "", "filter") | ||
chooseTreeCmd.Flags().StringS("t", "t", "", "target-pane") | ||
rootCmd.AddCommand(chooseTreeCmd) | ||
} |
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,18 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var clearHistoryCmd = &cobra.Command{ | ||
Use: "clear-history", | ||
Short: "", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(clearHistoryCmd).Standalone() | ||
clearHistoryCmd.Flags().StringS("t", "t", "", "target-pane") | ||
rootCmd.AddCommand(clearHistoryCmd) | ||
} |
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,19 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var clockModeCmd = &cobra.Command{ | ||
Use: "clock-mode", | ||
Short: "", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(clockModeCmd).Standalone() | ||
|
||
clockModeCmd.Flags().StringS("t", "t", "", "target-pane") | ||
rootCmd.AddCommand(clockModeCmd) | ||
} |
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,21 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var commandPromptCmd = &cobra.Command{ | ||
Use: "command-prompt", | ||
Short: "", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(commandPromptCmd).Standalone() | ||
|
||
commandPromptCmd.Flags().StringS("I", "I", "", "inputs") | ||
commandPromptCmd.Flags().StringS("p", "p", "", "prompts") | ||
commandPromptCmd.Flags().StringS("t", "t", "", "target-client") | ||
rootCmd.AddCommand(commandPromptCmd) | ||
} |
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 cmd | ||
|
||
import ( | ||
"github.com/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var confirmBeforeCmd = &cobra.Command{ | ||
Use: "confirm-before", | ||
Short: "", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(confirmBeforeCmd).Standalone() | ||
|
||
confirmBeforeCmd.Flags().StringS("p", "p", "", "prompt") | ||
confirmBeforeCmd.Flags().StringS("t", "t", "", "target-client") | ||
rootCmd.AddCommand(confirmBeforeCmd) | ||
} |
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 cmd | ||
|
||
import ( | ||
"github.com/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var copyModeCmd = &cobra.Command{ | ||
Use: "copy-mode", | ||
Short: "", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(copyModeCmd).Standalone() | ||
|
||
copyModeCmd.Flags().StringS("s", "s", "", "src-pane") | ||
copyModeCmd.Flags().StringS("t", "t", "", "target-pane") | ||
rootCmd.AddCommand(copyModeCmd) | ||
} |
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,21 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var customizeModeCmd = &cobra.Command{ | ||
Use: "customize-mode", | ||
Short: "", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(customizeModeCmd).Standalone() | ||
|
||
customizeModeCmd.Flags().StringS("F", "F", "", "format") | ||
customizeModeCmd.Flags().StringS("f", "f", "", "filter") | ||
customizeModeCmd.Flags().StringS("t", "t", "", "target-pane") | ||
rootCmd.AddCommand(customizeModeCmd) | ||
} |
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,19 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var deleteBufferCmd = &cobra.Command{ | ||
Use: "delete-buffer", | ||
Short: "", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(deleteBufferCmd).Standalone() | ||
|
||
deleteBufferCmd.Flags().StringS("b", "b", "", "buffer-name") | ||
rootCmd.AddCommand(deleteBufferCmd) | ||
} |
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,23 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var detachClientCmd = &cobra.Command{ | ||
Use: "detach-client", | ||
Short: "", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(detachClientCmd).Standalone() | ||
|
||
detachClientCmd.Flags().StringS("E", "E", "", "shell-command") | ||
detachClientCmd.Flags().BoolS("P", "P", false, "TODO description") | ||
detachClientCmd.Flags().BoolS("a", "a", false, "TODO description") | ||
detachClientCmd.Flags().StringS("s", "s", "", "target-session") | ||
detachClientCmd.Flags().StringS("t", "t", "", "target-client") | ||
rootCmd.AddCommand(detachClientCmd) | ||
} |
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,24 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/rsteube/carapace" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
var displayMenuCmd = &cobra.Command{ | ||
Use: "display-menu", | ||
Short: "", | ||
Run: func(cmd *cobra.Command, args []string) {}, | ||
} | ||
|
||
func init() { | ||
carapace.Gen(displayMenuCmd).Standalone() | ||
|
||
displayMenuCmd.Flags().BoolS("O", "O", false, "TODO description") | ||
displayMenuCmd.Flags().StringS("T", "T", "", "title") | ||
displayMenuCmd.Flags().StringS("c", "c", "", "target-client") | ||
displayMenuCmd.Flags().StringS("t", "t", "", "target-pane") | ||
displayMenuCmd.Flags().StringS("x", "x", "", "position") | ||
displayMenuCmd.Flags().StringS("y", "y", "", "position") | ||
rootCmd.AddCommand(displayMenuCmd) | ||
} |
Oops, something went wrong.