knmr

package module
v0.0.0-...-0076ad5 Latest Latest
Warning

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

Go to latest
Published: May 17, 2018 License: MIT Imports: 0 Imported by: 0

README

knmr

knmr - Command Line Utility written in Go

DESCRIPTION

knmr is command-line interface tool in Go.

INSTALLATION

Build from source

$ go get github.com/Ken2mer/knmr
$ go install github.com/Ken2mer/knmr

EXAMPLES

knmr agent
  • every 3s tick until signal receive

The knmr agent command has an '-d' option for debug output.

knmr -d agent
  • log output in DEBUG level

CONTRIBUTION

  1. Fork (https://github.com/ken2mer/knmr/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run gofmt -s
  7. Create new Pull Request

TODO

Implementation of loadConfig

  • use TOML parser

cf. TOML parser
BurntSushi/toml: TOML parser for Golang with reflection.

As a library

  • go-libs
  • Go client libraries for using third-party APIs

cf. awesome-go#third-party-apis
avelino/awesome-go: A curated list of awesome Go frameworks, libraries and software

Additional functions

  • auth, login
  • upload, postFile
  • session

cf. LearnServerProgramming · golang/go Wiki

cf. Custom Handlers and Avoiding Globals in Go Web Applications · request / response

  • How to build your own handler type
  • How to explicitly pass a “context” containing our database pool, template map, a custom logger, ...

Documentation

Overview

knmr version: 0.0.0

NAME:

knmr - knmr utility

USAGE:

knmr [global options] command [command options] [arguments...]

VERSION:

0.0.0

COMMANDS:

agent    agent
github   github
godoc    godoc
linebot  linebot
twitter  twitter
help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:

--debug, -d    enable debug output in logs
--help, -h     show help
--version, -v  print the version

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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