init

command
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

README

init is a command for initializing an existing or empty directory as a gobl project.

Usage

init <directory> <main cmd> [watchdir1 watchdir2 ...]

Example

init myproject cmd/mycmd assets/ templates/
go run github.com/kettek/gobl/cmd/init@v0.3.0 myproject cmd/mycmd assets/ templates/

Documentation

Overview

init initializes an existing or empty directory as a gobl project

Usage:

init <directory> <main cmd> [watchdirs...]

If directory does not exist, it will be created. If any .go file in the root of the directory has a main func, init will create the gobl.go file with a gobl() func. This should be called by the main func to enable gobl functionality. If the main cmd directory + file does not exist, they will be created. Any watchdirs will be created if they do not exist.

Example:

init myproject cmd/mycmd assets/ templates/

Jump to

Keyboard shortcuts

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