mirror of
https://github.com/pushbits/cli.git
synced 2025-07-23 11:43:00 +02:00
20 lines
490 B
Go
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
|
|
}
|