Skip to content

Commit

Permalink
reveal git commands in tsh usage (#51291)
Browse files Browse the repository at this point in the history
  • Loading branch information
greedy52 authored Jan 21, 2025
1 parent 5cef60f commit 3c1b1e3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tool/tsh/common/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,13 @@ type gitCommands struct {

func newGitCommands(app *kingpin.Application) gitCommands {
git := app.Command("git", "Git server commands.")
cmds := gitCommands{
return gitCommands{
login: newGitLoginCommand(git),
list: newGitListCommand(git),
ssh: newGitSSHCommand(git),
config: newGitConfigCommand(git),
clone: newGitCloneCommand(git),
}

// TODO(greedy52) hide the commands until all basic features are implemented.
git.Hidden()
cmds.login.Hidden()
cmds.list.Hidden()
cmds.config.Hidden()
cmds.clone.Hidden()
return cmds
}

type gitSSHURL transport.Endpoint
Expand Down

0 comments on commit 3c1b1e3

Please sign in to comment.