ChucK/Dev/Shell/cmd
From CSWiki
- shell commands
-
vm attach [hostname[:port]]
orvm @ [hostname[:port]]
attempts to attach to a ChucK VM running on hostname:port. The default port is 8888. If no hostname or port is specified, the shell attempts to attach to the in-process VM- prints a success message and the VM reference number for each successful attachment; prints a failure message for each failed attachment
-
vm +
orvm add
- saves the current VM for later use
-
vm - [vm_reference]
orvm remove [vm_reference]
- removes specified VM--it is no longer on the VM list
-
vm = [vm_reference]
orvm swap [vm_reference]
-
vms
orvm list
- lists all VMs plus the current VM
-
vm @+ hostname:port
adds and attaches the specified VM -
add [files]
or+ [files]
- adds [files] to current VM and prints out a shred reference number for each file
-
remove [ids]
or- [ids]
-
removeall
-
replace id filename [id filename]...
-
--
(remove shred with highest id) -
status
or^
-
kill
kills the current vm--shuts down the shell too if current_vm is the process vm -
ls
(like unix ls) -
alias
andunalias
(simple substitution-based, bash-like command aliases) -
shreds
list all shreds on the current VM -
pwd
-
cd
(change directory, also change current dir for chuck so paths are consistent) -
exit
exit everything -
close
close down shell, keep process VM running
-
- Ge: thoughts on these commands? ^
- they look great! few questions/thoughts:
- depending on the command line flag issued, the shell could automatically attach the most appropriate thing
- (maybe by default, the shell is attached to 'process'
- --local and --process probably don't need to be be flags since they are targets of the attach shell command (local or process or self may suffice?)
- the multiple attached target vms is totally cool!
- they look great! few questions/thoughts: