A "Hello World" greeting command-line (CLI) application
You cannot 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
continuous-integration/drone/push Build is passing Details
Add coverage support
9 months ago
.chglog Initial Commit 9 months ago
cli Initial Commit 9 months ago
cmd/greeting Initial Commit 9 months ago
internal Initial Commit 9 months ago
tests Initial Commit 9 months ago
tools Add release tools 9 months ago
.drone.yml Fix Drone CI config to point to the right branch (main) 9 months ago
.gitignore Add coverage support 9 months ago
.goreleaser.yml Initial Commit 9 months ago
CHANGELOG.md Update CHANGELOG for 0.0.1 9 months ago
LICENSE Initial Commit 9 months ago
Makefile Add coverage support 9 months ago
README.md Initial Commit 9 months ago
go.mod Initial Commit 9 months ago
go.sum Initial Commit 9 months ago
preflight.sh Add coverage support 9 months 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