Squeak scripts in UNIX

Keith Hodges keith_hodges at yahoo.co.uk
Fri Feb 16 10:21:19 UTC 2007


Addendum, FYI the output of

squeak -- Script +help

from the command line 'Launcher' enabled image (see previous email)
gives the following overview of the resources available from the command 
line.

cheers

Keith

---
Installer

path=/dir/*.txt          Specify a search path for the item to install
p=/dir1/*.txt;<url2>/    Multiple items delimited by ;
                         The page name is typically appended to the path 
string, or
                         if a "*" is present, it will be replaced by the 
page name.

in,i,install=<page>      Page appended to the path to begin the install 
process
url,u=<url>              Install using an explicit url from which to 
obtain a script or file
+debug                   Do not trap errors
view=<page>              Print the script that would have been installed.

For more options use Script eval="Installer ... "


Launcher

scripts="<sc.st> <sc2.st>"   Execute smalltalk scripts given by urls.

MCWorkingCopy

report=workingCopies     Print a list of the current Monticello packages
                         and their versions
to="*.txt"               Filename or pattern to write report to (default 
is stdout)


Script

+help,h                  Prints this help text.
eval, e="2+2"            Evaluate code and quit.
print, p="2+2"           Evaluate and print result to stdout and quit.
-quit                    Remain open after evaluating code

SmalltalkImage

+save                    Save image
save=name.image          Save image with given file name
+quit                    Quit squeak


SystemNavigation

report=method            Execute the query method and print the results 
to stdout or file.
to="*.txt"               Filename or pattern to write report to (default 
is stdout).


TestRunner

+default                 Include default suites, (this is the default)
                         #(#allStandardTests #toDo #expectedFailures)
-default                 Exclude default suites.
suites=#one#two          List of suites delimited by #
+filter                  Filters will select from the suites
-filter                  Filters will exclude from the suites (the default)
categories=Cat1;Cat2     List of categories delimited by ;
classes=Class;Class2     List of classes delimited by ;


WAKom

+stop                    Stops the WAKom server
start=<p>                Starts the server on the given port




		
___________________________________________________________ 
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html



More information about the Squeak-dev mailing list