Skip to content

Latest commit

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

plugin-commands

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

BuildPyPILICENSE

Configuration

# one.yamlrequired_version: ">= 0.7.1"plugins:
commands:
package: one-cli-plugin-commands==0.1.4module: 'plugin_commands'commands:
- name: installcommand: 'npm install'volumes: ['.:/work']help: 'npm install'
- name: buildcommand: 'npm run build'volumes: ['.:/work']help: 'npm run build'
- name: startvolumes: ['.:/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 toentrypoint: <string(entrypoint)> # default to Nonevolumes: <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 environmentsource 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.

About

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

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages