Skip to main content

This is a one-cli plugin that allow to create new commands during runtime to the CLI.

Project description

plugin-commands

This is a one-cli plugin that allow to create new commands during runtime to the CLI.

Build PyPI LICENSE

Configuration

# one.yaml
required_version: ">= 0.6.5"

plugins:
  commands:
    source: https://github.com/DNXLabs/plugin-commands/archive/0.1.0.tar.gz

commands:
- name: install
  command: 'npm install'
  volumes: ['.:/work']
  help: 'npm install'
- name: build
  command: 'npm run build'
  volumes: ['.:/work']
  help: 'npm run build'
- name: start
  volumes: ['.:/work']
  command: 'npm start'
  ports: ['4100:4100']
  help: 'npm start'
  environment: ['TEST': 'test']

Usage

one install
one build
one start

Parameters

- name: <command_name>
  image: <string(docker_image)> # default to
  entrypoint: <string(entrypoint)> # default to None
  volumes: <list(volumes)> # ['.:/work', '.:/app']
  command: <string(command)>
  ports: <list(ports)>  # ['3000:3000', '4100:4100']
  environment: <list(environments)> # ['ENV': 'env']
  help: <string(help)>

Python Virtual Environment

# Create environment
python3 -m venv env

# To activate the environment
source env/bin/activate

# When you finish you can exit typing
deactivate

Development

Dependencies

  • Python 3

Install dependencies

pip3 install --editable .

Author

Managed by DNX Solutions.

License

Apache 2 Licensed. See LICENSE for full details.

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

one-cli-plugin-commands-0.1.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

one_cli_plugin_commands-0.1.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file one-cli-plugin-commands-0.1.1.tar.gz.

File metadata

  • Download URL: one-cli-plugin-commands-0.1.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for one-cli-plugin-commands-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f1d39b10f20913a7459b09dcbce87ca5d1c47358c1e19472eb5efd5e160170a1
MD5 88ca8a7d2ce4c037742205eef7e19e3a
BLAKE2b-256 0ebc231ebb1a936eaaa771bb65d988cc44c2a719a5d8ce97d3a1b5d4f5dc2696

See more details on using hashes here.

File details

Details for the file one_cli_plugin_commands-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: one_cli_plugin_commands-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for one_cli_plugin_commands-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7462606f0cab9647dd0926cc7c5625792f13dc8b39415803bf7f49c66b4797c
MD5 2f841dd1f5c354bb538522445c2f055f
BLAKE2b-256 1c9d8150732009e9a95814e38249929dac723ede110385709783d278d5557286

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