> cat /wizhelp/editor
> _
======================================================================== File Editor Help ======================================================================== The wizard file system lets you create and edit game content. NAVIGATION: pwd - Show current directory cd <dir> - Change directory cd - Go to your home directory ls [path] - List files and directories FILE OPERATIONS: cat <file> - View entire file tail <file> [n] - View last n lines ed <file> - Edit a file mkdir <dir> - Create directory rm <file> - Delete file/directory cp <src> <dst> - Copy file mv <src> <dst> - Move/rename file EDITOR COMMANDS: a - Append after current line i - Insert before current line c - Change (replace) current line d - Delete current line p - Print current line l - List with line numbers w - Write (save) file q - Quit editor wq - Write and quit . - Exit input mode ACCESS LEVELS: Level 1-2: Your wizroom, /lib/objects, /lib/plugins Level 3-4: + /lib/areas Level 5+: Full /lib access TYPICAL WORKFLOW: cd # Go to your home mkdir myproject # Create project directory cd myproject # Enter directory ed test_room.py # Create new file a # Append mode from lib.models.entity import Room def load(): return Room( name="test_room", description="A test room." ) . # Exit input mode wq # Save and quit TIPS: - Always use Python syntax for .py files - Test your code with goto after saving - Check debug.log in your directory for errors - Use cat to review existing examples ========================================================================
> _