golint
This commit is contained in:
parent
0e24590e1d
commit
7e55ae4ca5
@ -12,9 +12,8 @@ import (
|
|||||||
|
|
||||||
const _description = "Create an LXC-compatible container configuration"
|
const _description = "Create an LXC-compatible container configuration"
|
||||||
|
|
||||||
type (
|
|
||||||
// Command is an implementation of go-flags.Command
|
// Command is an implementation of go-flags.Command
|
||||||
Command struct {
|
type Command struct {
|
||||||
configer func(io.ReadSeeker, io.Writer) error
|
configer func(io.ReadSeeker, io.Writer) error
|
||||||
Stdout io.Writer
|
Stdout io.Writer
|
||||||
|
|
||||||
@ -23,8 +22,8 @@ type (
|
|||||||
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"`
|
||||||
}
|
}
|
||||||
)
|
|
||||||
|
|
||||||
|
// NewCommand creates a new Command struct
|
||||||
func NewCommand() *Command {
|
func NewCommand() *Command {
|
||||||
return &Command{
|
return &Command{
|
||||||
configer: lxcconfig.LXCConfig,
|
configer: lxcconfig.LXCConfig,
|
||||||
@ -32,7 +31,10 @@ func NewCommand() *Command {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ShortDesc returns the command's short description
|
||||||
func (*Command) ShortDesc() string { return _description }
|
func (*Command) ShortDesc() string { return _description }
|
||||||
|
|
||||||
|
// LongDesc returns the command's long description
|
||||||
func (*Command) LongDesc() string { return _description }
|
func (*Command) LongDesc() string { return _description }
|
||||||
|
|
||||||
// Execute executes lxcconfig Command
|
// Execute executes lxcconfig Command
|
||||||
|
@ -12,9 +12,8 @@ import (
|
|||||||
|
|
||||||
const _description = "Flatten a docker container image to a tarball"
|
const _description = "Flatten a docker container image to a tarball"
|
||||||
|
|
||||||
type (
|
|
||||||
// Command is an implementation of go-flags.Command
|
// Command is an implementation of go-flags.Command
|
||||||
Command struct {
|
type Command struct {
|
||||||
flattener func(io.ReadSeeker, io.Writer) error
|
flattener func(io.ReadSeeker, io.Writer) error
|
||||||
Stdout io.Writer
|
Stdout io.Writer
|
||||||
|
|
||||||
@ -23,8 +22,8 @@ type (
|
|||||||
Outfile string `long:"outfile" desc:"Output path, stdout is '-'"`
|
Outfile string `long:"outfile" desc:"Output path, stdout is '-'"`
|
||||||
} `positional-args:"yes" required:"yes"`
|
} `positional-args:"yes" required:"yes"`
|
||||||
}
|
}
|
||||||
)
|
|
||||||
|
|
||||||
|
// NewCommand creates a new Command struct
|
||||||
func NewCommand() *Command {
|
func NewCommand() *Command {
|
||||||
return &Command{
|
return &Command{
|
||||||
flattener: rootfs.Flatten,
|
flattener: rootfs.Flatten,
|
||||||
@ -32,7 +31,10 @@ func NewCommand() *Command {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ShortDesc returns the command's short description
|
||||||
func (*Command) ShortDesc() string { return _description }
|
func (*Command) ShortDesc() string { return _description }
|
||||||
|
|
||||||
|
// LongDesc returns the command's long description
|
||||||
func (*Command) LongDesc() string { return _description }
|
func (*Command) LongDesc() string { return _description }
|
||||||
|
|
||||||
// Execute executes rootfs Command
|
// Execute executes rootfs Command
|
||||||
|
Loading…
Reference in New Issue
Block a user