Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abtris/ga-badge

Github Actions Badge Generator - web and cli
https://github.com/abtris/ga-badge

badge generator github-actions

Last synced: 28 days ago
JSON representation

Github Actions Badge Generator - web and cli

Awesome Lists containing this project

README

        

[![Build Status](https://github.com/abtris/ga-badge/actions/workflows/node.js.yml/badge.svg)](https://github.com/abtris/ga-badge/actions)
# Badge Generator

- naive implementation
- only for Github Actions
- no support

## App

![](screenshot.png)

## CLI

### Install

```shell
brew install abtris/tap/gab
```

### Usage

Help with simple one command `create`

```shell
$ gab

NAME:
gab - A new cli application

USAGE:
gab [global options] command [command options] [arguments...]

COMMANDS:
create, c Create github action badge from URL
help, h Shows a list of commands or help for one command

GLOBAL OPTIONS:
--help, -h show help (default: false)
```

and you can use command `create` with URL

```shell
$ gab create https://github.com/abtris/ga-badge/actions/workflows/node.js.yml/badge.svg
[![Build Status](https://github.com/abtris/ga-badge/actions/workflows/node.js.yml/badge.svg)](https://github.com/abtris/ga-badge/actions)
```

or specify more options

```shell
$ gab help create
NAME:
gab create - Create github action badge from URL

USAGE:
gab create [command options] [arguments...]

OPTIONS:
--url value, -u value
--branch value, -b value (default: "master")
--label value, -l value (default: "Build Status")
```

second command make fast init template for my used templates stored in `cli/templates`.

```shell
$ gab help init
NAME:
main init - Create github workflow file

USAGE:
main init [command options] [arguments...]

OPTIONS:
--lang value, -l value (default: "node.js")
```