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.


Documentation - Example configuration files


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. Alternatively, run

ckit init --download-global-defaults

to get started with a richer set of examples in the global configuration directory, see ckit-files.

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

ckit

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

Uploaded Source

Built Distribution

ckit-0.3.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ckit-0.3.0.tar.gz
  • Upload date:
  • Size: 11.4 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.3.0.tar.gz
Algorithm Hash digest
SHA256 f19a2a7c61575bc22897bf4593236bc1de5aff3616395adeacb33126b5e451a2
MD5 6d14cb49195d3f27db280d1e66836255
BLAKE2b-256 9916f0aabcb29a1e54fd1bffd4ee1555668c236863ebebc8b66e53c33050d798

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ckit-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 15.1 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d6f7d68c57c39cea117ebae9fa0892399f32d115fa026365fa39cd17ae338e89
MD5 e6dae0ed723241cb29fe9e3753d64ec1
BLAKE2b-256 b8acc27442953c36c04d0a80896b5bd91743c0fe542d1f67291d11a130216bc2

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