INNER CODE UNIT · Python
dot_read
probcomp/bayeslite · shell/src/core.py:185
def dot_read(self, argsin):
'''read a file of shell commands
<path/to/file> [options]
Adds a set of dot commands from the file at path to the cmdqueue.
Options:
-s : Sequential. Wait for keypress after each command has completed
-c : Do not add comments to the command queue.
-v : Verbose
'''
args = argsin.split()
if len(args) == 0:
self.stdout.write('Usage: .read <path/to/file> [options]\n')
return
path = args[0]
sequential = False
hide_comments = False
verbose = False