Преглед на файлове
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
No known key found for this signature in database
GPG ключ ID: 935911A1FF0660B1
променени са
1 файла, в които са
добавени 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 { |
|
|
|