pulumi/cmd/version.go
Joe Duffy f6e694c72b Rename pulumi-fabric to pulumi
This includes a few changes:

* The repo name -- and hence the Go modules -- changes from pulumi-fabric to pulumi.

* The Node.js SDK package changes from @pulumi/pulumi-fabric to just pulumi.

* The CLI is renamed from lumi to pulumi.
2017-09-21 19:18:21 -07:00

23 lines
530 B
Go

// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
package cmd
import (
"fmt"
"github.com/pulumi/pulumi/pkg/util/cmdutil"
"github.com/spf13/cobra"
)
const version = "0.6.1" // TODO[pulumi/pulumi#13]: a real auto-incrementing version number.
func newVersionCmd() *cobra.Command {
return &cobra.Command{
Use: "version",
Short: "Print Pulumi's version number",
Run: cmdutil.RunFunc(func(cmd *cobra.Command, args []string) error {
fmt.Printf("Pulumi version %v\n", version)
return nil
}),
}
}