cmd

package
v0.0.0-...-5552ee8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Index

Constants

View Source
const (
	BindPrefix string = "//tmpl:bind"

	// BinderTypeFile loads all templates from a file on disk
	BinderTypeFile string = "file"
	// BinderTypeEmbed loads all templates from go:embed
	BinderTypeEmbed string = "embed"
)

Variables

View Source
var (
	Outfile *string
	Mode    *string
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type TemplateBinding

type TemplateBinding struct {
	Args       []string
	BinderType string
	FileName   string
	FilePaths  []string
	StructType string
}

func (*TemplateBinding) TemplateText

func (b *TemplateBinding) TemplateText() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL