cmd

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Copyright © 2025 Saurav Upadhyay

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "dev"
	Commit  = "none"
	Date    = "unknown"
)
View Source
var DBType string
View Source
var Entities []string
View Source
var Entitys string
View Source
var YAMLPath string

Functions

func Execute

func Execute()

func IsHidden

func IsHidden(path string) (bool, error)

Types

type Config

type Config struct {
	Project     Project  `yaml:"project"`
	Entities    []string `yaml:"entities"`
	CustomLogic []string `yaml:"custom_logic"`
}

type Project

type Project struct {
	Name     string `yaml:"name"`
	Type     string `yaml:"type"`
	Port     int    `yaml:"port"`
	Location string `yaml:"location"`
	Database string `yaml:"db"`
	Router   string `yaml:"router"`
}

type ProjectInput

type ProjectInput struct {
	Name     string
	Type     string
	Router   string
	Port     string
	DB       string
	Entities []string
}

func RunInteractiveWizard

func RunInteractiveWizard() (*ProjectInput, error)

type TemplateData

type TemplateData struct {
	Name          string
	ModuleName    string
	PortName      string
	DBType        string
	Imports       string
	Start         string
	Entity        string
	Entities      []string
	ContextName   string
	ContextType   string
	Router        string
	Bind          string
	JSON          string
	LowerEntity   string
	OtherImports  string
	UpperEntity   []string
	ApiGroup      func(entity string, get string, lowerentity string) string
	IsAPIGroup    bool
	Get           string
	FullContext   string
	ToTheClient   string
	Response      string
	ImportHandler string
	ImportRouter  string
	ServiceName   string
	Image         string
	Environment   string
	Port          string
	Volume        string
	VolumeName    string
	DBName        string
	DBEnvPrefix   string
	Import        string
	Driver        string
	DSN           string
	Returnable    string
	ReturnKeyword string
	HTTPHandler   string
}

type TemplateJob

type TemplateJob struct {
	TemplateDir string
	DestDir     string
}

Jump to

Keyboard shortcuts

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