cli

command module
v0.0.0-...-f0dc491 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

README

#cli

Syntax

$CLI command-name global-options command-options arguments

where:

$CLI - program name (draft = onec-cli)

command-name The command to execute. Note that you can use either the full command name or its alias.
global-options A set of global options that may be used for all commands.
command-options A set of options corresponding to the command.
arguments A set of arguments corresponding to the command.
global-options Description
-d, --debug [Default: false] //TODO
// TODO later
-u, --user [Default: ""] db-user
-p, --password [Default: ""] db-password
-b, --ib [Default: "./"]
...

$CLI uses the following precedence order. Each item takes precedence over the item below it:

  • flag
  • env
  • config
  • key/value store // TODO
  • default

Important: configuration keys are case-insensitive.

Environment Variables

...

Commands

config

Command aliases c
Command options
Command arguments
ID A unique ID for the new configuration.
show This argument should be followed by a configured server ID. The configuration for this server ID will be shown.
delete This argument should be followed by a configured server ID. The configuration for this server ID will be deleted.
clear Clears all stored configuration.
Example 1

Configure the user and password by passing them in as command options for the DEV-1 configuration.

$CLI c DEV-1 --user=admin --password=password
Example 2

Delete the DEV-1 configuration.

$CLI c delete DEV-1
Example 3

Show details of the DEV-1 configuration

$CLI c show DEV-1

platform

$CLI **p**latform **i**nstall ?
$CLI **p**latform **c**reate -flags
$CLI **p**latform **r**un -flags

storage

feature

  • $CLI feature start -flags
  • $CLI feature export -flags

test

Command aliases t
Command options
--id Settings ID configured using the config command. If not specified, the default configured settings is used.
--spec Path to a file spec.
Command arguments
Framework path Path to a ".epf" file with test framework.
Example 1

.......... DEV-1 .........

$CLI t --id=DEV-1 --spec=./test.json ./vanessa-automation.epf

bootstrap

  • $CLI bootstrap -flags

sync

  • $CLI sync -flags

Documentation

Overview

Copyright © 2020 Alexander Strizhachuk <a.strizhachuk@yandex.ru>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL