Skip to main content

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.7.1"

plugins:
  commands:
    package: one-cli-plugin-commands==0.1.4
    module: 'plugin_commands'

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)>

Development

Dependencies

  • Python 3

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

Install dependencies

pip3 install --editable .

Author

Managed by DNX Solutions.

License

Apache 2 Licensed. See LICENSE for full details.

Release files for one-cli-plugin-commands 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for one-cli-plugin-commands 0.1.5
File Size Uploaded
one-cli-plugin-commands-0.1.5.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for one-cli-plugin-commands 0.1.5
File Interpreter ABI Platform
one_cli_plugin_commands-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / one-cli-plugin-commands-0.1.5.tar.gz

Download URL one-cli-plugin-commands-0.1.5.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
148477a83898969b4d11438396400fea668e96260525a28378e70f5e6593728a
BLAKE2b-256 checksum
How to use checksums
65cd4e65d9350031fcaf28d160aeea695e2c9efde0b80c1bd6e99c85611c72b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Release files / one_cli_plugin_commands-0.1.5-py3-none-any.whl

Download URL one_cli_plugin_commands-0.1.5-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26033f6d650a1f8b99613e6fa93a11db6ea687cb799638332a185a19c377e692
BLAKE2b-256 checksum
How to use checksums
9cda3e49ca8d9f207425042ad93fa3f00f81b4fd7f598eafb1c1f49c9e1740e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page