Menu

Commandline

Jim Saxton

Command line options

command file

Yoshi is a command line application. it reads arguments passed from the command line. The first argument is the command file. It is best, but not manditory, to place command files in:
/boot/home/config/settings/fatelk/yoshi/commands

Yoshi first searches the current folder for the command file. If it is not found, it looks in /boot/home/config/settings/fatelk/yoshi/commands for the file. Your script must either change do the directory that contains the command file, or specify the complete or relative path to the file if the command file is not in the default command file directory.

examples:

yoshi mycommandfile

This file must be in the curent directory or in the default command file directory.

yoshi /boot/home/myproject/mycommandfile

This command specifies the complete path to the file.

yoshi myproject/mycommandfile

This specifies a relative path to the file.

Over-ride arguments

Most often, yoshi is called without command line over-rides. The command line cannot do anything that cannot be done in a command file.

Example command-line with over-rides:

yoshi text "*.title = Enter your password" "tx.label = Password:" "tx.ispassword = true"

For more flexibility , several element types have commands that can be over-ridden from the command line. Not all elements have command-line overrides, and not all commands for an element can be overridden on the command line. Below is a list of the available command-line over-ride options.

  • Window:

*.title = newtitle

  • textfield:

.label = newlabel

.default = newdefault

.manditory = true / false

.ispassword = true / false

  • text

.default = new text to display

.txtfile = path to a textfile with new text to display

  • date

.label = new label to display

.default = new default date

  • filepanel

.label = new label to display

.default = new default path

.mode = new filepanel mode

  • multiselect

.label = new label to display

.default = option# to set / reset

  • popup

.label = new label to display

.default = option# to set as the default selection

  • radiobutton

.label = new label to display

.default = option# to set as the default selection

  • checkbox

.default = 1 / 0 to set/ unset the checkbox

  • spincontrol

.label = new label to display

.default = new default number

Back Next


MongoDB Logo MongoDB