dev.go 229 B

1234567891011121314151617
  1. package control
  2. import (
  3. "fmt"
  4. "github.com/rancher/os/pkg/util"
  5. "github.com/codegangsta/cli"
  6. )
  7. func devAction(c *cli.Context) error {
  8. if len(c.Args()) > 0 {
  9. fmt.Println(util.ResolveDevice(c.Args()[0]))
  10. }
  11. return nil
  12. }