all repos — weimar @ 28e896519b8b6466fbb9a904b18002993c823f76

Unnamed repository; edit this file 'description' to name the repository.

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}