1.0.0 • Published 9 months ago

automation-scripts-cli v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Automation-script-cli

The Automation-script-cli is a powerful command-line tool designed to simplify task automation using terminal scripts. It allows users to define custom commands in a JSON configuration file, making it easy to execute complex operations with a single command.


Getting Started

Installation

npm install -g automation-scripts-cli

Upload configuration file

automation-scripts-cli --upload <path-to-config-file>

Execute command

automation-scripts-cli --command-name

Example configuration

The configuration file must be a JSON file with the following structure:

[
  {
    "name": "example",
    "description": "Description of the example",
    "options": [
      {
        "name": "--verbose",
        "alias": "-v",
        "description": "Activate verbose mode"
      },
      {
        "name": "--output",
        "alias": "-o",
        "description": "Specify the output file",
        "required": true
      }
    ],
    "exec": [
      "echo 'Executing the example command'", 
      "node script.js example"
    ]
  }
]
FieldTypeValue
nameStringexample
descriptionStringDescription of the example
optionsArray -> object
String1. name --verbose
String- alias -v
String- description Activate verbose mode
String2. name --output
String- alias -o
String- description Specify the output file
Boolean- required true
execArray -> String
String1. echo 'Executing the example command'
String2. node script.js example

More examples of configuration files

in this repository: examples have more examples of configuration files

1.0.0

9 months ago