23 lines
465 B
Go
23 lines
465 B
Go
// Copyright (c) 2023 Joshua Rich <joshua.rich@gmail.com>
|
|
//
|
|
// This software is released under the MIT License.
|
|
// https://opensource.org/licenses/MIT
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"github.com/joshuar/go-hass-agent/internal/agent"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func init() {
|
|
}
|
|
|
|
var versionCmd = &cobra.Command{
|
|
Use: "version",
|
|
Short: "Print the version number",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
agent.ShowVersion(agent.AgentOptions{ID: appID})
|
|
},
|
|
}
|