lxcconfig

This commit is contained in:
Motiejus Jakštys 2021-05-24 00:11:58 +03:00
parent 424b115841
commit aacea22c0f

View File

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