lxcconfig
This commit is contained in:
parent
424b115841
commit
aacea22c0f
@ -13,9 +13,8 @@ import (
|
|||||||
// Command is "lxcconfig" command
|
// Command is "lxcconfig" command
|
||||||
type (
|
type (
|
||||||
Command struct {
|
Command struct {
|
||||||
PositionalArgs struct {
|
|
||||||
cmd.BaseCommand
|
cmd.BaseCommand
|
||||||
|
PositionalArgs struct {
|
||||||
Infile goflags.Filename `long:"infile" description:"Input tarball"`
|
Infile goflags.Filename `long:"infile" description:"Input tarball"`
|
||||||
Outfile string `long:"outfile" description:"Output path, stdout is '-'"`
|
Outfile string `long:"outfile" description:"Output path, stdout is '-'"`
|
||||||
} `positional-args:"yes" required:"yes"`
|
} `positional-args:"yes" required:"yes"`
|
||||||
@ -24,6 +23,7 @@ type (
|
|||||||
|
|
||||||
// Execute executes lxcconfig Command
|
// Execute executes lxcconfig Command
|
||||||
func (c *Command) Execute(args []string) (err error) {
|
func (c *Command) Execute(args []string) (err error) {
|
||||||
|
c.BaseCommand.Init()
|
||||||
if len(args) != 0 {
|
if len(args) != 0 {
|
||||||
return errors.New("too many args")
|
return errors.New("too many args")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user