<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Commandline</title><link>https://sourceforge.net/p/yoshi/wiki/Commandline/</link><description>Recent changes to Commandline</description><atom:link href="https://sourceforge.net/p/yoshi/wiki/Commandline/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 24 Aug 2023 19:00:36 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/yoshi/wiki/Commandline/feed" rel="self" type="application/rss+xml"/><item><title>Commandline modified by Jim Saxton</title><link>https://sourceforge.net/p/yoshi/wiki/Commandline/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="command-line-options"&gt;Command line options&lt;/h1&gt;
&lt;h3 id="command-file"&gt;command file&lt;/h3&gt;
&lt;p&gt;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:&lt;br/&gt;
&lt;strong&gt;/boot/home/config/settings/fatelk/yoshi/commands&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;examples:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;yoshi mycommandfile
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;This file must be in the curent directory or in the default command file directory.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;yoshi /boot/home/myproject/mycommandfile
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;This command specifies the complete path to the file.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;yoshi myproject/mycommandfile
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;This specifies a relative path to the file.&lt;/p&gt;
&lt;h3 id="over-ride-arguments"&gt;Over-ride arguments&lt;/h3&gt;
&lt;p&gt;Most often, yoshi is called without command line over-rides. The command line cannot do anything that cannot be done in a command file.&lt;/p&gt;
&lt;p&gt;Example command-line with over-rides:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="nv"&gt;yoshi&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;text&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"*.title = Enter your password"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"tx.label = Password:"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"tx.ispassword = true"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;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.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Window:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;*.title = newtitle&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;textfield:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;.label = newlabel&lt;/p&gt;
&lt;p&gt;.default = newdefault&lt;/p&gt;
&lt;p&gt;.manditory = true / false&lt;/p&gt;
&lt;p&gt;.ispassword = true / false&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;text&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;.default = new text to display&lt;/p&gt;
&lt;p&gt;.txtfile = path to a textfile with new text to display&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;date&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;.label = new label to display&lt;/p&gt;
&lt;p&gt;.default = new default date&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;filepanel&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;.label = new label to display&lt;/p&gt;
&lt;p&gt;.default = new default path&lt;/p&gt;
&lt;p&gt;.mode = new filepanel mode&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;multiselect&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;.label = new label to display&lt;/p&gt;
&lt;p&gt;.default = option# to set / reset&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;popup&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;.label = new label to display&lt;/p&gt;
&lt;p&gt;.default = option# to set as the default selection&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;radiobutton&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;.label = new label to display&lt;/p&gt;
&lt;p&gt;.default = option# to set as the default selection&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;checkbox&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;.default = 1 / 0 to set/ unset the checkbox&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;spincontrol&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;.label = new label to display&lt;/p&gt;
&lt;p&gt;.default = new default number&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://github.com/bbjimmy/Yoshi/wiki/pipe-rule" rel="nofollow"&gt;Back&lt;/a&gt; &lt;a class="" href="https://github.com/bbjimmy/Yoshi/wiki/BashScripting" rel="nofollow"&gt;Next&lt;/a&gt; &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim Saxton</dc:creator><pubDate>Thu, 24 Aug 2023 19:00:36 -0000</pubDate><guid>https://sourceforge.neta9b24161dac7a25e4178e0da3276041af2bb9ffd</guid></item></channel></rss>