Code Monkey home page Code Monkey logo

mycliapp's Introduction

Go Report Card GitHub license

mycliapp is a small cli app that could show current time , just for testing the cobra package

Installing

Pre-built binaries

See the release page for the full list of pre-built assets.

The commands here show amd64 versions, 386 versions are available in the releases page.

Linux

export release=v1.0.0
curl -L -o mycliapp.tar.gz https://github.com/fourierrr/mycliapp/releases/download/${release}/mycliapp_${release}_Linux_arm64.tar.gz
tar -xvf mycliapp.tar.gz
cp mycliapp /usr/local/bin/mycliapp

OSX

export release=v1.0.0
curl -L -o mycliapp.tar.gz https://github.com/fourierrr/mycliapp/releases/download/${release}/mycliapp_${release}_Darwin_x86_64.tar.gz
tar -xvf mycliapp.tar.gz
mv mycliapp /usr/local/bin/mycliapp

Windows

In PowerShell v5+

$url = "https://github.com/fourierrr/mycliapp/releases/download/v1.0.0/mycliapp_1.0.0_Windows_x86_64.tar.gz"
$output = "$PSScriptRoot\mycliapp.zip"

Invoke-WebRequest -Uri $url -OutFile $output
Expand-Archive "$PSScriptRoot\mycliapp.zip" -DestinationPath "$PSScriptRoot\mycliapp"

Source

Using go modules, you can build mycliapp at any git tag:

$ GO111MODULE=on go get github.com/fourierrr/mycliapp/cmd/mycliapp@latest

This will download and compile mycliapp , note that you will need to be on a recent version of go which supports go modules.

Usage

just a small app to show current time on 2 ways

A cli-app will show current time, just for test the package 'cobra', and try releas this app in github

Usage:
  mycliapp [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  show        A brief description of your command
  time        show current time

Flags:
  -h, --help     help for mycliapp
  -t, --toggle   Help message for toggle

Use "mycliapp [command] --help" for more information about a command.

mycliapp's People

Contributors

fourierrr avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.