0.0.11 • Published 8 months ago

climat v0.0.11

Weekly downloads
-
License
LGPL-3.1-only
Repository
github
Last release
8 months ago

LastCommitOnMaster Build Version NodeVersion GitHub license

Powerful CLI Macros Explore the docs » Report Bug · Request Feature · Ask Question · Contribute

⚠️ PRE-RELEASE: Everything is subject to change ⚠️

Generate powerful macros for your CLI tools with a simple and smart approach.

  • ✍️ Write complex CLI interfaces in a declarative style.
  • 🗄️ Combine many inconsistent CLI tools under a single consistent one.
  • 🥷 Or just rewrite the CLI interface of a tool for a faster and more user-tailored experience.

Installation

npm i -g climat

Usage

Write your macro in sgit.cli

sgit {
    sub acp(amend a: flag) {
        action <% 
            git add . && 
            git commit $(amend:--amend) && 
            git push $(amend:--force) 
        %>
    }
    sub cf(branch: arg, force f: flag) {
        action <% 
            git checkout feature/$(branch) $(force:--force) 
        %>
    }
}

Installing this via sudo climat install sgit.cli will generate

sgit acp             # Will add all files to index, commit and push
sgit acp --ammend    # Will add all files to index, ammend last commit and push force
sgit acp -a          # Can use shorthands for parameters
sgit cf myFeature    # git checkout feature/myFeature

What does it stand for?

CLi MAcro Tree

0.0.11

8 months ago

0.0.10

8 months ago

0.0.9

8 months ago

0.0.8

1 year ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago