mirror of
https://github.com/rancher/os.git
synced 2025-07-03 18:16:13 +00:00
ros dev spec
find device using blkid spec
This commit is contained in:
parent
2efba7cca5
commit
b7b52c65a1
@ -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
11
cmd/control/dev.go
Normal 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]))
|
||||
}
|
Loading…
Reference in New Issue
Block a user