mirror of
https://github.com/docker/compose.git
synced 2025-10-26 08:43:49 +01:00
21 lines
347 B
Go
21 lines
347 B
Go
package commands
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
const Version = "0.0.1"
|
|
|
|
func VersionCommand() *cobra.Command {
|
|
return &cobra.Command{
|
|
Use: "version",
|
|
Short: "Show version.",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
fmt.Fprintf(cmd.OutOrStdout(), "Docker ECS plugin %s\n", Version)
|
|
return nil
|
|
},
|
|
}
|
|
}
|