Skip to content

Add version variable and --version flag support #2

@buddyh

Description

@buddyh

The root.go is missing the version variable needed for --version flag support.

To add in cmd/alexa/root.go:

var version = "dev"

This gets set via ldflags during build (-X main.version=$(VERSION)) but needs the variable defined.

Also add to rootCmd:

rootCmd.Version = version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions