Added some updates to hey documentation, for 1.2.6 --> 1.2.8 changes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39737 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+33
-10
@@ -4,7 +4,7 @@
|
||||
<TITLE>hey Documentation</TITLE>
|
||||
</HEAD>
|
||||
<BODY BGCOLOR=#FFFFFF>
|
||||
<HR><CENTER><h1>hey version 1.2.6</h1>
|
||||
<HR><CENTER><h1>hey version 1.2.8</h1>
|
||||
</CENTER>
|
||||
<HR>
|
||||
<BASEFONT size=4>
|
||||
@@ -28,17 +28,17 @@ Use it at your own risk.
|
||||
<h2>Usage</h2>
|
||||
hey should be used from Terminal. When you start it without parameters it will display the command line syntax it accepts:
|
||||
<PRE><CODE>
|
||||
hey v1.2.6, written by Attila Mezei ([email protected])
|
||||
usage: hey [-s] <app|signature> [let <specifier> do] <verb> <specifier_1> <of <specifier_n>>*
|
||||
[to <value>] [with name=<value> [and name=<value>]*]
|
||||
hey v1.2.8, written by Attila Mezei (attila.[email protected])
|
||||
usage: hey [-s][-o] <app|signature|teamid> [let <specifier> do] <verb> <specifier_1> <of
|
||||
<specifier_n>>* [to <value>] [with name=<value> [and name=<value>]*]
|
||||
where <verb> : DO|GET|SET|COUNT|CREATE|DELETE|GETSUITES|QUIT|SAVE|LOAD|'what'
|
||||
<specifier> : [the] <property_name> [ <index> | name | "name" | '"name"']
|
||||
<index> : index | '['index']' | '['-reverse_index']' | '['fromvalue to tovalue']'
|
||||
<specifier> : [the] <property_name> [ <index> | name | "name" | '"name"' ]
|
||||
<index> : int | -int | '['int']' | '['-int']' | '['startint to end']'
|
||||
<value> : "string" | <integer> | <float> | bool(value) | int8(value) |
|
||||
int16(value) | int32(value) | float(value) | double(value) |
|
||||
BPoint(x,y) | BRect(l,t,r,b) | rgb_color(r,g,b,a) | file(path)
|
||||
<value> : "string" | <integer> | <float> | bool(value) | int8(value)
|
||||
| int16(value) | int32(value) | float(value) | double(value)
|
||||
| BPoint(x,y) | BRect(l,t,r,b) | rgb_color(r,g,b,a) | file(path)
|
||||
options: -s: silent
|
||||
-o: output result to stdout for easy parsing
|
||||
|
||||
</CODE></PRE>
|
||||
<br>
|
||||
@@ -57,7 +57,7 @@ The verbs send the following messages:
|
||||
<li>SAVE: B_SAVE_REQUESTED
|
||||
<li>LOAD: B_REFS_RECEIVED
|
||||
</ul>
|
||||
You can use your own verbs if you specify the value names and constants in the 'value_info' structure. See <A HREF="file:///boot/beos/documentation/Be%20Book/The%20Application%20Kit/PropertyInfo.html">BPropertyInfo</A> and <A HREF="file:///boot/develop/headers/be/app/PropertyInfo.h">PropertyInfo.h</A> for details.
|
||||
You can use your own verbs if you specify the value names and constants in the 'value_info' structure. See <A HREF="http://www.haiku-os.org/legacy-docs/bebook/BPropertyInfo_Overview.html">BPropertyInfo</A> and <A HREF="file:///boot/develop/headers/be/app/PropertyInfo.h">PropertyInfo.h</A> for details.
|
||||
<p>
|
||||
Note that the verb is not case sensitive but the specifier names (e.g. "Frame", "Label"...) are. You can use 'what' constants
|
||||
directly, like
|
||||
@@ -102,6 +102,29 @@ You can check the message to be sent to the application by setting the DEBUG_HEY
|
||||
<br>
|
||||
|
||||
<h2>History</h2>
|
||||
v1.2.8
|
||||
<ul>
|
||||
<li>
|
||||
(Sander Stoks): Added command-line option -o which will output the "result" value
|
||||
in the reply message to stdout, so you can use it in shell scripting more easily:
|
||||
"hey Becasso get AspectRatio of Canvas 0"
|
||||
outputs
|
||||
Reply BMessage(B_REPLY):
|
||||
"result" (B_DOUBLE_TYPE) : 0.600
|
||||
but "hey -o Becasso get AspectRatio of Canvas 0"
|
||||
outputs 0.600000 directly.
|
||||
</ul>
|
||||
v1.2.7
|
||||
<ul>
|
||||
<li>
|
||||
by Sander Stoks: Made a fork since I don't think Attila still supports "hey", and
|
||||
because the latest version on BeBits seems to be 1.2.4.
|
||||
Changes w.r.t. 1.2.6: When an application returns an error on a message, hey now
|
||||
keeps iterating over applications with the same signature. This is useful because,
|
||||
for instance, Terminal starts as a new process for each instance, so it previously
|
||||
wouldn't work to move a specific Terminal window using hey. You can now say
|
||||
"hey Terminal set Frame of Window foo to BRect[...]".
|
||||
</ul>
|
||||
v1.2.6
|
||||
<ul>
|
||||
<li>syntax extended by Sander Stoks <sander@adamation.com> to allow:
|
||||
|
||||
Reference in New Issue
Block a user