浏览代码

Include version string in version command output

The command `transfer.sh version` does not include the application's
version string in its output. Fix this.
tags/v1.2.0
stillwondering 3 年前
父节点
当前提交
fe1cde6614
找不到此签名对应的密钥 GPG 密钥 ID: 935911A1FF0660B1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      cmd/cmd.go

+ 1
- 1
cmd/cmd.go 查看文件

@@ -251,7 +251,7 @@ type Cmd struct {
}

func VersionAction(c *cli.Context) {
fmt.Println(color.YellowString(fmt.Sprintf("transfer.sh: Easy file sharing from the command line")))
fmt.Println(color.YellowString(fmt.Sprintf("transfer.sh %s: Easy file sharing from the command line", Version)))
}

func New() *Cmd {


正在加载...
取消
保存