Skip to main content

A `cli` that helps you manage your `cli` commands

Project description

A cli that helps you manage your cli commands.

Design

Basically, cfi aims to help you when:

  • you need to run lots of cli commands everyday.
  • these commands can be divided into several groups, and commands in each group are highly repetitive.

So the implementation of cfi is very simple:

  • It will prompt you to create cli command templates and manage them in hierarchical structures.
  • It will prompt you to 'fill' the template with your own parameters when you want to run a command.
  • It will printed out the final command for you to copy-paste / run.

Installation

carefree-cli requires python>=3.8.

pip install cfi

Basic Workflow

  1. Initialize cfi:
cfi init
  1. Create a cli template:
cfi add -h
  1. Fill a cli template:
cfi load -h

Common Usages

Fun fact: you can add cfi template with cfi itself!

cfi add 'cfi add \"{template}\" {hierarchy}' cfi_add
  • Get help:
cfi -h
  • Install cli completion:
cfi --install-completion
  • List templates:
cfi list -h

Serializations

  • Export templates:
cfi export
  • Import templates:
cfi import -h

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

carefree_cli-0.1.0.tar.gz (7.7 kB view details)

Uploaded Source

File details

Details for the file carefree_cli-0.1.0.tar.gz.

File metadata

  • Download URL: carefree_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.20

File hashes

Hashes for carefree_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 35a0f2f74a742cb07f9ade1275c9714b8ee1923027e2a625eca5ce25da8f0004
MD5 9d46ef9825913c47c663eb80cb63e168
BLAKE2b-256 af1a549518a518464dc8dfa0a3be901bc7d42c0552bdcea083ff3012d9fc9fa9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page