All Projects → dharmeshkakadia → cobra-example

dharmeshkakadia / cobra-example

Licence: Apache-2.0 License
minimal example of cobra app

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to cobra-example

go-12factor-example
Example the 12factor app using golang
Stars: ✭ 20 (-53.49%)
Mutual labels:  example, cobra
movies
Real world isomorphic application for movies search, based on Webpack 5 / Express / React 17 + Redux-Saga / Bootstrap 4.6 + CSS Modules / i18next / SSR
Stars: ✭ 20 (-53.49%)
Mutual labels:  example
lagom-samples
developer.lightbend.com/start/?group=lagom
Stars: ✭ 85 (+97.67%)
Mutual labels:  example
discord-giveaways-bot
🎁Giveways Bot using the discord-giveaways package
Stars: ✭ 118 (+174.42%)
Mutual labels:  example
mocking-with-jest
API Testing with Jest
Stars: ✭ 41 (-4.65%)
Mutual labels:  example
golang-cognito-example
Golang example of using AWS Cognito APIs (Register, Login, Verify Phone, Refresh token)
Stars: ✭ 74 (+72.09%)
Mutual labels:  example
vue-vuex-todomvc
Example TodoMVC Vue.js app with Vuex store and server backend via REST
Stars: ✭ 41 (-4.65%)
Mutual labels:  example
mean-stack-angular-8-blog-cms
MEAN Stack (Angular 8) Tutorial: Build a Simple Blog CMS Example
Stars: ✭ 19 (-55.81%)
Mutual labels:  example
Tensorflow-lite-kotlin-samples
📌This repo contains the kotlin implementation of TensorflowLite Example Android Apps🚀
Stars: ✭ 17 (-60.47%)
Mutual labels:  example
gomphotherium
Gomphotherium (/ˌɡɒmfəˈθɪəriəm/; "welded beast"), a command line Mastodon client.
Stars: ✭ 22 (-48.84%)
Mutual labels:  cobra
EnttPong
Built for EnTT, at the request of the developer as a demo.
Stars: ✭ 51 (+18.6%)
Mutual labels:  example
Agora-C Sharp-SDK
The simple ways to use Agora RTC SDK with C#
Stars: ✭ 18 (-58.14%)
Mutual labels:  example
serverless-lighthouse-template
Run lighthouse audits from headless chrome in lambda.
Stars: ✭ 25 (-41.86%)
Mutual labels:  example
node-opencv-templatematching-test
Test for template matching using node-opencv
Stars: ✭ 20 (-53.49%)
Mutual labels:  example
reddit-clone
Reddit Clone using Laravel 5.4 / Clon de Reddit usando Laravel 5.4
Stars: ✭ 22 (-48.84%)
Mutual labels:  example
document-server-integration
Examples on how to integrate ONLYOFFICE Document Server into your own website or application
Stars: ✭ 68 (+58.14%)
Mutual labels:  example
Object-Detection-Using-YOLO-v2-Deep-Learning
MATLAB example of deep learning based object detection using Yolo v2 with ResNet50 Base Network
Stars: ✭ 34 (-20.93%)
Mutual labels:  example
mooseware
💀 Skeleton for writing a middleware handler
Stars: ✭ 47 (+9.3%)
Mutual labels:  example
clean architecture
Clean Architecture Simple App.
Stars: ✭ 16 (-62.79%)
Mutual labels:  example
whisperer
Simple Go program that makes HTTP request constantly in order to generate random HTTP/DNS traffic noise
Stars: ✭ 31 (-27.91%)
Mutual labels:  cobra

cobra-example

An example application built with cobra

Steps

  1. Install cobra

    go get github.com/spf13/cobra/cobra

  2. Initialize cobra-example application

    $GOPATH/bin/cobra init github.com/dharmeshkakadia/cobra-example

  3. Add hello and bye sub commands to our example app

    $GOPATH/bin/cobra add hello

    $GOPATH/bin/cobra add bye

  4. Edit cmd/hello.go, cmd/bye.go and main.go to reflect the command description and logic required.

  5. Run main.go. You would see full help and subcommands

    go run main.go
    
    This application shows how to create modern CLI
    applications in go using Cobra CLI library
    
    Usage:
    cobra-example [command]
    
    Available Commands:
    bye         says bye
    hello       says hello
    help        Help about any command
    
    Flags:
        --config string   config file (default is $HOME/.cobra-example.yaml)
    -h, --help            help for cobra-example
    -t, --toggle          Help message for toggle
    
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].