blob: 6a6d26d3353d70d3c91a0693f3707281611736d6 [file] [log] [blame] [edit]
package cmd
import (
"fmt"
"github.com/Masterminds/cookoo"
"github.com/Masterminds/glide/cfg"
)
// PrintName prints the name of the project.
//
// This comes from Config.Name.
func PrintName(c cookoo.Context, p *cookoo.Params) (interface{}, cookoo.Interrupt) {
conf := p.Get("conf", nil).(*cfg.Config)
fmt.Println(conf.Name)
return nil, nil
}