Skip to content

Commit

Permalink
git: shell
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Aug 17, 2024
1 parent e99dbee commit 9f3def6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions completers/git_completer/cmd/shell.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)

var shellCmd = &cobra.Command{
Use: "shell",
Short: "Restricted login shell for Git-only SSH access",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(shellCmd).Standalone()

shellCmd.Flags().Bool("c", false, "run command")
rootCmd.AddCommand(shellCmd)
}

0 comments on commit 9f3def6

Please sign in to comment.