Explorar el Código

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 hace 3 años
padre
commit
fe1cde6614
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 935911A1FF0660B1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      cmd/cmd.go

+ 1
- 1
cmd/cmd.go Ver fichero

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


Cargando…
Cancelar
Guardar