A "Hello World" greeting command-line (CLI) application
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
James Mills a24af588b9
Add coverage support
3 days ago
.chglog Initial Commit 3 days ago
cli Initial Commit 3 days ago
cmd/greeting Initial Commit 3 days ago
internal Initial Commit 3 days ago
tests Initial Commit 3 days ago
tools Add release tools 3 days ago
.drone.yml Fix Drone CI config to point to the right branch (main) 3 days ago
.gitignore Add coverage support 3 days ago
.goreleaser.yml Initial Commit 3 days ago
CHANGELOG.md Update CHANGELOG for 0.0.1 3 days ago
LICENSE Initial Commit 3 days ago
Makefile Add coverage support 3 days ago
README.md Initial Commit 3 days ago
go.mod Initial Commit 3 days ago
go.sum Initial Commit 3 days ago
preflight.sh Add coverage support 3 days ago

README.md

greeting - Hello World!

Build Status Go Report Card Go Reference

greeting is a command-line (CLI) application that implements a traditional "Hello World" greeting and is used as the basic of new command-line (CLI) applications. Included are a project infrastructure for building, releaseing and performing integration tests with coverage.

Features:

Getting Started

Install from Releases

You can install greeting by simply downloading the latest version from the Release page for your platform and placing the binary in your $PATH.

Install from Source

To install greeting from source you can run go get directly if you have a Go environment setup:

go get git.mills.io/prologic/greeting

NOTE: Be sure to have $GOBIN (if not empty) or your $GOPATH/bin in your $PATH. See Compile and install packages and dependencies

Or grab the source code and build:

git clone https://git.mills.io/prologic/greeting.git
cd greeting
make build

And optionally run make install to place the binary greeting in your $GOBIN or $GOPATH/bin (again see note above).

Usage

$ greeting
Hello? Anyone?

With a name:

$ greeting --name World
Hello World!

See greeting --help for usage:

$ ./greeting --help
NAME:
   cli - CLI app

USAGE:
   greeting [global options] command [command options] [arguments...]

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --name value  User name
   --help, -h    show help

Contributing

Interested in contributing to this project? You are welcome! Here are some ways you can contribute:

  • File an Issue -- For a bug, or interesting idea you have for a new feature or just general questions.
  • Submit a Pull-Request or two! We welcome all PR(s) that improve the project!

Please see the Contributing Guidelines.

License

greeting is licensed under the terms of the MIT License