mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-04 10:58:29 +02:00
Add git helper (#612)
Add support to tea login with helper same another tools and `gh` Reviewed-on: https://gitea.com/gitea/tea/pulls/612 Reviewed-by: 6543 <6543@obermui.de> Co-authored-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com> Co-committed-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
This commit is contained in:

committed by
6543

parent
a35bf931ae
commit
2984ad4964
@ -84,6 +84,11 @@ var CmdLoginAdd = cli.Command{
|
||||
Aliases: []string{"a"},
|
||||
Usage: "Use SSH public key or SSH fingerprint to login (needs a running ssh-agent with ssh key loaded)",
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "helper",
|
||||
Aliases: []string{"j"},
|
||||
Usage: "Add helper",
|
||||
},
|
||||
},
|
||||
Action: runLoginAdd,
|
||||
}
|
||||
@ -113,5 +118,7 @@ func runLoginAdd(ctx *cli.Context) error {
|
||||
ctx.String("ssh-agent-key"),
|
||||
ctx.Bool("insecure"),
|
||||
sshAgent,
|
||||
!ctx.Bool("no-version-check"))
|
||||
!ctx.Bool("no-version-check"),
|
||||
ctx.Bool("helper"),
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user