mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-31 04:37:50 +00:00
* --remote, --url and --identity are now anchored to podman command. Subcommands should no longer have issues * TraverseChildren now set to V1 expectations * Latest flag now has helper function. Now has consistent usage. * IsRemote() uses cobra parser to determin if --remote is given * Moved validation functions from parser pkg to validate pkg * Fixes #6598 Fixes #6704 Signed-off-by: Jhon Honce <jhonce@redhat.com> <MH: Fixed import issues> Signed-off-by: Matt Heon <matthew.heon@pm.me>
28 lines
647 B
Go
28 lines
647 B
Go
package system
|
|
|
|
import (
|
|
"github.com/containers/libpod/v2/cmd/podman/registry"
|
|
"github.com/containers/libpod/v2/cmd/podman/validate"
|
|
"github.com/containers/libpod/v2/pkg/domain/entities"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
// Pull in configured json library
|
|
json = registry.JSONLibrary()
|
|
|
|
// Command: podman _system_
|
|
systemCmd = &cobra.Command{
|
|
Use: "system",
|
|
Short: "Manage podman",
|
|
Long: "Manage podman",
|
|
RunE: validate.SubCommandExists,
|
|
}
|
|
)
|
|
|
|
func init() {
|
|
registry.Commands = append(registry.Commands, registry.CliCommand{
|
|
Mode: []entities.EngineMode{entities.ABIMode, entities.TunnelMode},
|
|
Command: systemCmd,
|
|
})
|
|
}
|