Split commands with a semi-colon if on the same line
This commit is contained in:
parent
b2a469a247
commit
1fda601f96
|
@ -20,11 +20,14 @@ def run(input):
|
|||
if len(input) == 0:
|
||||
return prompt
|
||||
|
||||
split = input.split(' ')
|
||||
if len(split)>1:
|
||||
manager.run(split[0],split[1:])
|
||||
else:
|
||||
manager.run(input)
|
||||
split = input.split(';')
|
||||
|
||||
for line in split:
|
||||
cmd = line.strip().split(' ')
|
||||
if len(cmd)>1:
|
||||
manager.run(cmd[0],cmd[1:])
|
||||
else:
|
||||
manager.run(line)
|
||||
|
||||
history.insert(input)
|
||||
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
cliloop - emitted in cline.loop.py, called at the beginning of every cli loop
|
||||
|
||||
quit - emitted in manager.py, ends the main loop and closes all plugins
|
||||
|
||||
run - emitted in scion.py, begins a main loop for the program
|
||||
|
||||
write - emitted in bt.message.py, displays text to the screen
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
Scion To-Do List
|
||||
----------------
|
||||
|
||||
- CLI tab completion
|
||||
- Add more signals
|
||||
- Rename some signals
|
||||
- Scripting
|
||||
- Check during startup, register as callback if some token in first line
|
||||
- Run script if given as an input arg, then exit
|
||||
- Run script after a signal has executed
|
||||
- Variables (dict with name->string)
|
||||
- *.scion == scripts. Allow adding to list of extensions
|
||||
- Separate commands with semi-colon
|
||||
- Settings.init()
|
||||
- Rename dirs
|
||||
scion/
|
||||
core/
|
||||
plugins/
|
||||
scripts/
|
||||
doc/
|
||||
- Clean up sgtk, settings, loader, manager, cline
|
||||
- Simple command line (no ncurses)
|
||||
- Documentation
|
||||
- Signals
|
||||
- Setting variables
|
||||
- Scripts
|
||||
- Better way to list signals, aliases, and settings
|
||||
- Command line options for plugins
|
||||
- Command line optionss to disable signals and/or scripting
|
||||
- About plugin to give scion version information
|
||||
- Plugin sub-function help ("help plugins disable")
|
Loading…
Reference in New Issue