2.3.0 • Published 4 years ago

@owvy/aka v2.3.0

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

👨🏼‍🚀 aka

aka is a friendly cli to run gist sharable bash commands.

npm version

Installation

npm install -g @owvy/aka
aka clone [gist_id]

Create an aka.yml file.

## Simple Script
what-time:
  desc: Print current time
  run: node -e 'console.log(new Date())'

## Scripts with vars
secret:
  desc: print my secret value
	run:
		- echo Multiple lines,
		- echo and this is my secret, {SECRET_VALUE}

## Sub-scripts
create:
  desc: A collection of scripts
  run:
    folder: mkdir {name}
		file: touch {name} && code {name}

## Scripts with base path
workspace:
	desc: My Workspace
	basePath: '~/workspace'
	run:
	 server: npm run server
	 db: docker-compose up

Usage

$ aka what-time

> Sun Oct 25 2020 22:41:07 GMT+0100 (Central European Standard Time)
$ aka var add SECRET_VALUE=123
$ aka secret

> Multiple lines,
> and this is my secret, 123

Variables

Variables can be store globally and be accessed by any command:

 aka var add LOGIN_ID=MyID
 aka var add PASS=123pass!

CLI

CommandParamsDesc
aka clonegist_idclone gist
aka update-update the current gist
aka list-print available commands
aka var open-open variable file (variables.yml)
aka var addVAR_NAME=valuestore global variable
aka var list-print all stored variables
2.3.0

4 years ago

2.2.3

4 years ago

2.2.2

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago