Skip to content

Commit

Permalink
Return empty for inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
DeanHnter committed Feb 8, 2024
1 parent 895e345 commit 9fbd9a9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Client/cmd/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@ var (
Long: `Return low-level information on Docker objects, including containers, images, volumes, nodes, networks, services, and more.
By default, docker inspect will render all results in a JSON array. This command is capable of inspecting multiple targets at a time.`,
// Allowing for a variable number of arguments
Args: cobra.MinimumNArgs(1),
Args: func(cmd *cobra.Command, args []string) error {
if len(args) < 1 {
fmt.Println("placeholder")
}
return nil
},
RunE: func(cmd *cobra.Command, args []string) error {
// Retrieve flags. This example assumes necessary flags are added to this Cobra command elsewhere in the code.
format, _ := cmd.Flags().GetString("format")
Expand Down Expand Up @@ -198,8 +203,6 @@ var (
return nil
},
}


)

func init() {
Expand Down

0 comments on commit 9fbd9a9

Please sign in to comment.