pulumi/cmd/coco/version.go

23 lines
467 B
Go
Raw Normal View History

// Copyright 2017 Pulumi, Inc. All rights reserved.
package main
import (
"fmt"
"github.com/spf13/cobra"
)
2017-02-25 16:25:33 +01:00
const version = "0.0.1" // TODO[pulumi/coconut#13]: a real auto-incrementing version number.
func newVersionCmd() *cobra.Command {
return &cobra.Command{
Use: "version",
2017-02-25 16:25:33 +01:00
Short: "Print Coconut's version number",
Run: runFunc(func(cmd *cobra.Command, args []string) error {
2017-02-25 16:25:33 +01:00
fmt.Printf("Coconut version %v\n", version)
return nil
}),
}
}