Przeglądaj źródła

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 lat temu
rodzic
commit
fe1cde6614
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: 935911A1FF0660B1
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      cmd/cmd.go

+ 1
- 1
cmd/cmd.go Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz