cli

package
v0.0.0-...-b3e6d50 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

internal/cli/build.go

internal/cli/dev.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCommand

func BuildCommand() *cli.Command

func DevCommand

func DevCommand() *cli.Command

func NewApp

func NewApp() *cli.App

NewApp creates and returns a new cli.App instance configured for the gopostulate framework. This function sets up the entire command-line interface for the framework, including all available commands, global flags, and application metadata.

The returned cli.App is the entry point for all CLI interactions with the gopostulate framework. It includes commands for creating new projects, running the development server, and building projects for production.

Usage:

app := cli.NewApp()
err := app.Run(os.Args)

The app can be further customized before running, if necessary.

func NewCommand

func NewCommand() *cli.Command

NewCommand creates and returns a new CLI command for creating a new gopostulate project. The command accepts a single flag, --name (or -n), which specifies the name of the new project. When the command is executed, it creates a new directory with the specified project name and copies the project template files into the new directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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