testapp

command module
v0.0.0-...-a80cd58 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MPL-2.0 Imports: 6 Imported by: 0

README

TestApp for verdeter

This golang module is a test app for verdeter. This test app use all the major feature of verdeter.

This app and this file will be kept up to date with verdeter development. You can see some bash lines and their associated outputs.

$ MATH_ORGANISATION_NAME=ditrit go run main.go
The root command does nothing but print the config key 'organisation.name'
value for "key=organisation.name": ditrit
$ go run main.go
The root command does nothing but print the config key 'organisation.name'
value for "key=organisation.name": orness
$ go run main.go add --int1 -1
Some errors were collected during initialization:
- validator "Superior to 0" failed for key "int1": "under1"
- "int2" is required
Error: validation failed (2 errors)
Usage:
  math add [flags]

Flags:
  -h, --help       help for add
      --int1 int   Integer 1
      --int2 int   Integer 2

Global Flags:
      --config_path string         Path to the config directory/file
      --organisation.name string   An organisation name

panic: validation failed (2 errors)

...
$ go run main.go add --int1 12 --int2 5
print the result of --int1 + --int2
result: 17

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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