Skip to main content

Organize and run frequently used commands

Project description

ckit logo


Release Build status Supported Python versions codecov PyPI - Downloads License

ckit is a command line utility to help you organise and quickly run frequently used commands.

Quickstart

Installation

ckit can be installed by running

pip install ckit

To get started, run

ckit init

which will prompt to add a ckit/ckit.yaml file in the user's home directory for global commands, and/or a ckit.yaml file in the current directory for commands specific to the current project.

To use ckit to run any of the pre-configured commands, simply run

ckit

For more information, see the documentation.

Configuration

ckit can look for configuration in the following two locations:

  • In a ckit.yaml file in the current directory
  • In any .yaml file in the the global configuration directory, which is defaulted to ~/ckit, but which can be overridden with the environment variable CKIT_HOME.

An example .yaml file could look as follows:

test:
  my-command:
    cmd: "echo Hello! My name is: $name. My favourite fruit is: $fruit"
    echo: false
    args:
      - name
      - fruit: apple

Which adds the command group test wth a single command called my-command. When my-command is selected to be run, ckit prompts the user for name and fruit before running the command specified in cmd, where fruit is defaulted to apple if the user does not give any input.

For more details, see the configuration section of the documentation.


Repository initiated with fpgmaas/cookiecutter-poetry.

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

ckit-0.2.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ckit-0.2.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file ckit-0.2.0.tar.gz.

File metadata

  • Download URL: ckit-0.2.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.11.2 Linux/5.15.0-1034-azure

File hashes

Hashes for ckit-0.2.0.tar.gz
Algorithm Hash digest
SHA256 312ca3bb00375f669f467db7c9399c8d3e7ee12d9a556c9b0310c3712971d96a
MD5 02b7123aea43a04964fce3b131e5dd50
BLAKE2b-256 50de6fa26e72ac23fff86110d29e65811acf6f2fd0ce612ea662e4485d86bb5c

See more details on using hashes here.

File details

Details for the file ckit-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ckit-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.11.2 Linux/5.15.0-1034-azure

File hashes

Hashes for ckit-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be2578e2fa27dbf852006728c900cfa07705a082cd9d3e7b739d7a1676c0f6ce
MD5 11a0931a0fb498e94f0f08adcdf5ef8f
BLAKE2b-256 6a73174b0b4e5cbcea97e6b5b97482d1431d6fea16a1a94034c7cad68f7b453c

See more details on using hashes here.

Supported by

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