cmd

package
Version: v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PoolDirRel is the name of the generated pool directory (relative to the current project root)
	PoolDirRel = "pool"
	// ResDirRel is the name of the resources directory (relative to the current project root)
	ResDirRel = "res"
	// TempEmpty is the name of the temporary go file in the pool directory for startup
	TempEmpty = "temp.go"
)

Variables

View Source
var HexyaCmd = &cobra.Command{
	Use:   "hexya",
	Short: "Hexya is an open source modular ERP",
	Long: `Hexya is an open source modular ERP written in Go.
It is designed for high demand business data processing while being easily customizable`,
}

HexyaCmd is the base 'hexya' command of the commander

Functions

func InitConfig

func InitConfig()

InitConfig initializes Hexya configuration system (viper).

func SetHexyaFlags

func SetHexyaFlags(c *cobra.Command)

SetHexyaFlags adds the Hexya flags to the given cobra command

func SetServerFlags

func SetServerFlags(c *cobra.Command)

SetServerFlags adds the server flags to the given command.

func StartServer

func StartServer()

StartServer starts the Hexya server. It is meant to be called from a project start file which imports all the project's module.

func UpdateDB

func UpdateDB()

UpdateDB updates the database schema. It is meant to be called from a project start file which imports all the project's module.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL