cmd/weimar/image.go (view raw)
1package main
2
3import (
4 "fmt"
5
6 "github.com/spf13/cobra"
7)
8
9var imageCmd = &cobra.Command{
10 Use: "image",
11 Short: "Manage images",
12}
13
14var imageDeleteCmd = &cobra.Command{
15 Use: "delete <id>",
16 Short: "Delete an image by ID",
17 Args: cobra.ExactArgs(1),
18 RunE: func(cmd *cobra.Command, args []string) error {
19 fmt.Fprintln(cmd.OutOrStdout(), "not yet implemented")
20 return nil
21 },
22}
23
24func init() {
25 rootCmd.AddCommand(imageCmd)
26 imageCmd.AddCommand(imageDeleteCmd)
27}