Skip to main content

A `cli` that helps you manage your commands

Project description

A cli that helps you manage your commands.

Design

Basically, carefree-cli aims to help you when:

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

So the implementation of carefree-cli is very simple:

  • It will prompt you to create (cli / bash) 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 carefree-cli

Basic Workflow

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

Common Usages

Fun fact: you can add cfi templates with carefree-cli itself!

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

Serializations

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

Documentation

An auto-generated documentation is available here.

typer cfi utils docs --name cfi --output docs.md --title '`carefree-cli`'

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.2.tar.gz (8.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: carefree_cli-0.1.2.tar.gz
  • Upload date:
  • Size: 8.2 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.2.tar.gz
Algorithm Hash digest
SHA256 d526b0a202c91250c3e1b70a9d2182294d24bd9a6098e1db8d6fff83a85797c3
MD5 e589ccdafa6973b9474ee12683b081d6
BLAKE2b-256 20d00333de81b33b15f82ea33b1d01a11a81d527e9e3f3309da0e8bd8e5d7c69

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