Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LabelHeight float64 LabelWidth float64 Rows int Cols int Unit string SizeStr string PageHeight float64 PageWidth float64 LabelPosition pdf.Position InputFileName string Separator string RecoveryLevel qrcode.RecoveryLevel FontSize float64 MinQrWidthPercentage float64 IsBorder bool )
View Source
var CompletionCmd = &cobra.Command{ Use: "completion [bash|zsh|fish|powershell]", Short: "Generate completion script", Long: "Generate completion script. In zsh you would put something like source <(qrlabel completion --shell zsh) in your .zshrc", ValidArgs: []string{"bash", "zsh", "fish", "powershell"}, Args: cobra.MatchAll(cobra.ExactArgs(1), cobra.OnlyValidArgs), DisableFlagsInUseLine: true, Run: func(cmd *cobra.Command, args []string) { switch args[0] { case "bash": cmd.Root().GenBashCompletionV2(os.Stdout, true) case "zsh": cmd.Root().GenZshCompletion(os.Stdout) case "fish": cmd.Root().GenFishCompletion(os.Stdout, true) case "powershell": cmd.Root().GenPowerShellCompletionWithDesc(os.Stdout) } }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.