1
0
mirror of https://github.com/rancher/os.git synced 2025-07-04 02:26:13 +00:00

ros dev spec

find device using blkid spec
This commit is contained in:
Ivan Mikushin 2015-07-21 12:56:55 +05:00
parent 2efba7cca5
commit b7b52c65a1
2 changed files with 19 additions and 0 deletions

View File

@ -24,6 +24,14 @@ func Main() {
HideHelp: true,
Subcommands: configSubcommands(),
},
{
Name: "dev",
ShortName: "d",
Usage: "dev spec",
HideHelp: true,
SkipFlagParsing: true,
Action: devAction,
},
{
Name: "env",
ShortName: "e",

11
cmd/control/dev.go Normal file
View File

@ -0,0 +1,11 @@
package control
import (
"fmt"
"github.com/codegangsta/cli"
"github.com/rancherio/os/util"
)
func devAction(c *cli.Context) {
fmt.Println(util.ResolveDevice(c.Args()[0]))
}