Skip to content

anthophobiac/cobra-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cobra CLI Icon

Cobra Template

A minimal template for building command-line tools in Go using:


Getting Started

1. Clone the template

git clone https://github.com/yourusername/cobra-template.git
cd cobra-template
go mod tidy

2. Run the CLI

go run main.go
go run main.go hello # An example command

Project Structure

cobra-template/
├── cmd/              # Cobra commands where new ones can be added
├── pkg/logger/       # Logger that uses fatih/color
├── main.go           # Application entrypoint

About

Template for CLI apps using Go and Cobra

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published