4 Commits

Author SHA1 Message Date
cc77d5e17b Add Changelog for v0.3.1 (#139)
Add Changelog for v0.3.1

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/tea/pulls/139
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-06-15 15:46:49 +00:00
413b9d6985 --ssh-key should be string not bool (#135) (#137)
--ssh-key should be string not bool (#135)

--ssh-key should be string not bool

Fix #134

Reviewed-on: https://gitea.com/gitea/tea/pulls/135
Reviewed-by: 6543 <6543@noreply.gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-on: https://gitea.com/gitea/tea/pulls/137
Reviewed-by: John Olheiser <john.olheiser@gmail.com>
2020-06-15 15:27:15 +00:00
35ad046d8d modules/git: fix dropped error (#127)
modules/git: fix dropped error

Co-authored-by: Lars Lehtonen <lars.lehtonen@gmail.com>
Reviewed-on: https://gitea.com/gitea/tea/pulls/127
Reviewed-by: 6543 <6543@noreply.gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-04-25 02:35:22 +00:00
e9dee07459 Issues details: add missing newline (#126)
add missing newline

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/tea/pulls/126
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: mrsdizzie <info@mrsdizzie.com>
2020-04-23 00:28:54 +00:00
4 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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"),

View File

@ -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",

View File

@ -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