mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-19 02:02:55 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
cc77d5e17b | |||
413b9d6985 | |||
35ad046d8d | |||
e9dee07459 |
@ -1,5 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [v0.3.1](https://gitea.com/gitea/tea/pulls?q=&type=all&state=closed&milestone=1265) - 2020-06-15
|
||||||
|
|
||||||
|
* BUGFIXES
|
||||||
|
* --ssh-key should be string not bool (#135) (#137)
|
||||||
|
* modules/git: fix dropped error (#127)
|
||||||
|
* Issues details: add missing newline (#126)
|
||||||
|
|
||||||
## [v0.3.0](https://gitea.com/gitea/tea/pulls?q=&type=all&state=closed&milestone=1227) - 2020-04-22
|
## [v0.3.0](https://gitea.com/gitea/tea/pulls?q=&type=all&state=closed&milestone=1227) - 2020-04-22
|
||||||
|
|
||||||
* FEATURES
|
* FEATURES
|
||||||
|
@ -64,7 +64,7 @@ func runIssueDetail(ctx *cli.Context, index string) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("#%d %s\n%s created %s\n\n%s", issue.Index,
|
fmt.Printf("#%d %s\n%s created %s\n\n%s\n", issue.Index,
|
||||||
issue.Title,
|
issue.Title,
|
||||||
issue.Poster.UserName,
|
issue.Poster.UserName,
|
||||||
issue.Created.Format("2006-01-02 15:04:05"),
|
issue.Created.Format("2006-01-02 15:04:05"),
|
||||||
|
@ -55,7 +55,7 @@ var cmdLoginAdd = cli.Command{
|
|||||||
Usage: "Access token. Can be obtained from Settings > Applications",
|
Usage: "Access token. Can be obtained from Settings > Applications",
|
||||||
Required: true,
|
Required: true,
|
||||||
},
|
},
|
||||||
&cli.BoolFlag{
|
&cli.StringFlag{
|
||||||
Name: "ssh-key",
|
Name: "ssh-key",
|
||||||
Aliases: []string{"s"},
|
Aliases: []string{"s"},
|
||||||
Usage: "Path to a SSH key to use for pull/push operations",
|
Usage: "Path to a SSH key to use for pull/push operations",
|
||||||
|
@ -81,6 +81,9 @@ func readSSHPrivKey(keyFile string) (sig ssh.Signer, err error) {
|
|||||||
sig, err = ssh.ParsePrivateKey(sshKey)
|
sig, err = ssh.ParsePrivateKey(sshKey)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
pass, err := promptPass(keyFile)
|
pass, err := promptPass(keyFile)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
sig, err = ssh.ParsePrivateKeyWithPassphrase(sshKey, []byte(pass))
|
sig, err = ssh.ParsePrivateKeyWithPassphrase(sshKey, []byte(pass))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Reference in New Issue
Block a user