From aacea22c0f6f85885414b60ec758efa34000e777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 24 May 2021 00:11:58 +0300 Subject: [PATCH] lxcconfig --- internal/cmdlxcconfig/cmdlxcconfig.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cmdlxcconfig/cmdlxcconfig.go b/internal/cmdlxcconfig/cmdlxcconfig.go index cd80670..75b66c8 100644 --- a/internal/cmdlxcconfig/cmdlxcconfig.go +++ b/internal/cmdlxcconfig/cmdlxcconfig.go @@ -13,9 +13,8 @@ import ( // Command is "lxcconfig" command type ( Command struct { + cmd.BaseCommand PositionalArgs struct { - cmd.BaseCommand - 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") }