sh-1.4.0
less than a minute
KOSI Plugin sh version 1.4.0
Summary
The sh plugin executes commands in the shell. Commands can either be written one below the other, or split by a “;”.
Keys
command
The value consists of a string, which represents a command line command. Multiple commands can be specified separated by a semicolon.
sudo (optional)
Set to true to execute the Plugin with sudo privileges.
sudoPassword (mandatory if you use sudo)
Set sudo password
Example
Example 1
Execute a single command
languageversion = "0.1.0";
apiversion = "kubernative/kubeops/sina/user/v3";
name = "kosi-example-shell-package";
description = "kosi-example-shell-package";
version = "0.1.0";
docs = "docs.tgz";
logo = "logo.png";
install
{
sh(
command='"echo hello world"';
);
}
Example 2
Execute multiple commands
languageversion = "0.1.0";
apiversion = "kubernative/kubeops/sina/user/v3";
name = "kosi-example-shell-package";
description = "kosi-example-shell-package";
version = "0.1.0";
docs = "docs.tgz";
logo = "logo.png";
install
{
sh(
command='"echo foo; echo bar"';
);
}
Example 3
Execute command with sudo
languageversion = "0.1.0";
apiversion = "kubernative/kubeops/sina/user/v3";
name = "kosi-example-shell-package";
description = "kosi-example-shell-package";
version = "0.1.0";
docs = "docs.tgz";
logo = "logo.png";
install
{
sh(
command='"reboot now"';
sudo='"true"';
sudoPassword='"topsecret"';
);
}
Release-Notes
Version 0.0.2
New
- nothing
Updates
- update toolchain dependencies 1.0.15
Version 0.0.1
New
- initial version