gotice

command module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

README

gotice - go notice

Go copyright notice generator.

Gotice generates a third-party copyright notice file based on the go modules in the go.mod file of a project.

Use gotice help for further information.

Installation/Start

go install
> go install pkg.tk-software.de/gotice@latest
> gotice version
go run
> go run pkg.tk-software.de/gotice@latest version
Releases

Releases are available here: https://gitlab.com/tobiaskoch/gotice/-/releases

Usage

Initialization
gotice init

Gotice will create a .gotice.json file with default values in the current working directory.

Generation
> gotice generate ./project1 ./project1/dist/NOTICE.txt

Gotice will generate the file ./project1/dist/NOTICE.txt bases on the go.mod file in the directory ./project1. If there is a .gotice.json configuration file in the ./project1 directory it will be used.

Configuration

.gotice.json

{
    "template":"built-in:txt",
    "rendering":"text"
}
template

The template that shall be used for the generation of the notice file. Supported values:

  • built-in:txt: the build-in text template (default)
  • built-in:md: the build-in markdown template
  • built-in:html: the built-in html template
rendering

The rendering engine that shall be used to render the template file. Supported values:

  • text: uses text/template (default)
  • html: uses html/template

Contributing

see CONTRIBUTING.md

Donating

Thanks for your interest in this project. You can show your appreciation and support further development by donating.

License

GoMod © 2023-2024 Tobias Koch. Released under a BSD-style license.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package module provides functionality to work with go modules.
Package module provides functionality to work with go modules.
Package notice provides functionality to detect license and copyright information of go modules.
Package notice provides functionality to detect license and copyright information of go modules.
Package version provides the application version.
Package version provides the application version.

Jump to

Keyboard shortcuts

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