master
1package generate
2
3import (
4 "github.com/kahnwong/swissknife/internal/generate"
5 "github.com/spf13/cobra"
6)
7
8var generateQRCodeCmd = &cobra.Command{
9 Use: "qrcode",
10 Short: "Generate QR code",
11 Long: `Generate QR code from URL (either as an arg or from clipboard) and copy resulting image to clipboard.`,
12 RunE: func(cmd *cobra.Command, args []string) error {
13 return generate.QRCode(args)
14 },
15}
16
17func init() {
18 Cmd.AddCommand(generateQRCodeCmd)
19}