paperbots icon indicating copy to clipboard operation
paperbots copied to clipboard

Add console world

Open badlogic opened this issue 7 years ago • 0 comments

provide a super simple shell that comes with some standard built-in Unix-y utilities, a text editor, and a virtual, persistent, file system!

Functions & types

record file
   name: string
   path: string
   length: number
   isDirectory: boolean
end

readFile(path: string): string
writeFile(path: string, content: string, append: boolean)
deleteFile(path: string)
listFiles(path: string): list<file>

print(message: string)
input(): string

badlogic avatar Oct 31 '18 00:10 badlogic