Skip to content

Commit

Permalink
Merge pull request #1106 from rsteube/tmux-subcommands
Browse files Browse the repository at this point in the history
tmux: generated subcommands
  • Loading branch information
rsteube authored May 9, 2022
2 parents d609adf + 7b6e4c4 commit 0424efe
Show file tree
Hide file tree
Showing 82 changed files with 1,854 additions and 0 deletions.
25 changes: 25 additions & 0 deletions completers/tmux_completer/cmd/attachSession_generated.go
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)
}
22 changes: 22 additions & 0 deletions completers/tmux_completer/cmd/bindKey_generated.go
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)
}
26 changes: 26 additions & 0 deletions completers/tmux_completer/cmd/breakPane_generated.go
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)
}
30 changes: 30 additions & 0 deletions completers/tmux_completer/cmd/capturePane_generated.go
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)
}
23 changes: 23 additions & 0 deletions completers/tmux_completer/cmd/chooseBuffer_generated.go
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)
}
23 changes: 23 additions & 0 deletions completers/tmux_completer/cmd/chooseClient_generated.go
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)
}
23 changes: 23 additions & 0 deletions completers/tmux_completer/cmd/chooseTree_generated.go
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)
}
18 changes: 18 additions & 0 deletions completers/tmux_completer/cmd/clearHistory_generated.go
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)
}
19 changes: 19 additions & 0 deletions completers/tmux_completer/cmd/clockMode_generated.go
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)
}
21 changes: 21 additions & 0 deletions completers/tmux_completer/cmd/commandPrompt_generated.go
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)
}
20 changes: 20 additions & 0 deletions completers/tmux_completer/cmd/confirmBefore_generated.go
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)
}
20 changes: 20 additions & 0 deletions completers/tmux_completer/cmd/copyMode_generated.go
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)
}
21 changes: 21 additions & 0 deletions completers/tmux_completer/cmd/customizeMode_generated.go
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)
}
19 changes: 19 additions & 0 deletions completers/tmux_completer/cmd/deleteBuffer_generated.go
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)
}
23 changes: 23 additions & 0 deletions completers/tmux_completer/cmd/detachClient_generated.go
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)
}
24 changes: 24 additions & 0 deletions completers/tmux_completer/cmd/displayMenu_generated.go
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)
}
Loading

0 comments on commit 0424efe

Please sign in to comment.