splunk-golang

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

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

Go to latest
Published: Aug 2, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

Banner Logo

Splunk Golang REST API Client

splunk-golang is a Splunk REST API Client written in GO designed to allow common tasks for Splunk usage and administration to be conducted through an easy-to-use command line tool.

Documentation

🏠 Homepage

Examples

Install

# Clone the repository
git clone https://github.com/brittonhayes/splunk-golang

# Install dependencies
make dependencies

Usage

# From entrypoint
go run main.go --help

# To run with CI
make all

Run tests

make security

Using the binary

Once the binary is compiled and added to your path, you can utilize the CLI to perform Splunk operations.

  1. Build the binary
# Build your OS's binary
make build

or

go build -o ./bin/splunk-go main.go

# Cross-compile for all systems
make cross-compile

  1. Run the help command to get a list of possible actions
# Using the entrypoint
go run main.go --help

or

# Using the Makefile
make run

This will output a message like the following: Help Output

Adding features to the project

  1. Navigate to the pkg directory of the repository and add a new *.go file with your added functionality.

  2. Run cobra add [command_name] and the Cobra CLI tool will add a new *.go file for your command.

  3. After creating your command, run make docs to automatically update the documentation of all CLI commands.


Author

👤 Britton Hayes

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check the issues page. You can also take a look at the contributing guide.

Acknowledgements

Social image from Ashley Mcnamara

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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