Files
pushbits-cli/internal/commands/version.go
2023-04-01 16:40:57 +02:00

20 lines
490 B
Go

// Package commands contains functions that are exposed as dedicated commands of the tool.
package commands
import (
"fmt"
"github.com/pushbits/cli/internal/buildconfig"
"github.com/pushbits/cli/internal/options"
)
// VersionCommand represents the options specific to the version command.
type VersionCommand struct{}
// Run is the function for the version command.
func (*VersionCommand) Run(_ *options.Options) error {
fmt.Printf("pbcli %s\n", buildconfig.Version)
return nil
}