Commit Graph

19 Commits

Author SHA1 Message Date
Snarling 5f2a1c3f27 TERMINAL: Fix original alias syntax (#545) 2023-05-29 06:54:51 -04:00
Snarling 62adaf3006 Various bugfix/cleanup (#489)
* parseCommands no longer removes excess whitespace (it was unneeded and also had a bug in it relating to commands that ended in a quote mark)
* more documentation and some variable renaming
* Fix script editor focus bug on navigating to the editor from sidebar
* Fix initialization for lastNodeReset and lastAugReset
2023-04-24 15:48:49 -04:00
omuretsu 9004b12256 Actually fix quoted string args 2023-04-24 13:21:58 -04:00
omuretsu c4776753f1 Fix quoted section detection 2023-04-24 13:05:50 -04:00
Snarling e0272ad4af FILES: Path rework & typesafety (#479)
* Added new types for various file paths, all in the Paths folder.
* TypeSafety and other helper functions related to these types
* Added basic globbing support with * and ?. Currently only implemented for Script/Text, on nano and download terminal commands
* Enforcing the new types throughout the codebase, plus whatever rewrites happened along the way
* Server.textFiles is now a map
* TextFile no longer uses a fn property, now it is filename
* Added a shared ContentFile interface for shared functionality between TextFile and Script.
* related to ContentFile change above, the player is now allowed to move a text file to a script file and vice versa.
* File paths no longer conditionally start with slashes, and all directory names other than root have ending slashes. The player is still able to provide paths starting with / but this now indicates that the player is specifying an absolute path instead of one relative to root.
* Singularized the MessageFilename and LiteratureName enums
* Because they now only accept correct types, server.writeToXFile functions now always succeed (the only reasons they could fail before were invalid filepath).
* Fix several issues with tab completion, which included pretty much a complete rewrite
* Changed the autocomplete display options so there's less chance it clips outside the display area.
* Turned CompletedProgramName into an enum.
* Got rid of programsMetadata, and programs and DarkWebItems are now initialized immediately instead of relying on initializers called from the engine.
* For any executable (program, cct, or script file) pathing can be used directly to execute without using the run command (previously the command had to start with ./ and it wasn't actually using pathing).
2023-04-24 10:26:57 -04:00
LiamGeorge1999 b1af58d6a6 Fixed speechmarks not making numeric terminal arguments into strings (#391) 2023-02-25 08:17:01 -05:00
Olivier Gagnon f6f023eeb4 Fix tons of typos 2022-10-09 01:25:31 -04:00
RevanProdigalKnight 8e092939ce Fix indentation 2022-05-13 21:44:32 -06:00
RevanProdigalKnight 7a6809f66c Simplify quoted string argument parsing 2022-05-13 21:39:20 -06:00
RevanProdigalKnight 286ab64d67 Ran formatter 2022-05-04 08:32:55 -06:00
RevanProdigalKnight 8d5f80de26 Fixes linter/build errors from editing last night in GitHub 2022-05-04 08:27:52 -06:00
RevanProdigalKnight 36db849ff1 Upgrade terminal ParseCommand function
Adds ability to parse arbitrarily-nested strings into single arguments (see comments on lines 48, 64, 76)
Adds ability to parse additional number formats, e.g.: hexadecimal (0x0A), octal (018), and binary (0b1101)
Combines arguments separated with escaped spaces into single string arguments, e.g.: "echo Hello\ World!" -> ["echo", "Hello World!"]
2022-05-04 00:46:15 -06:00
phyzical c681828ec1 few more event key. constant refactors 2022-03-24 23:09:24 +08:00
BB 5e2ccc71ec Mixing spaces and tabs, extra semicolons and lonely ifs are now forbidden 2022-03-11 16:32:48 +01:00
Olivier Gagnon f111beb399 rm consolelog 2021-12-03 15:20:31 -05:00
Olivier Gagnon 0b92f706ad terminal parses boolean exactly. 2021-12-03 14:46:40 -05:00
Olivier Gagnon 13b08d7cc8 terminal parses boolean exactly. 2021-12-03 14:44:32 -05:00
Olivier Gagnon 38408294cc build terminal string parsing fix 2021-09-19 00:55:29 -04:00
Olivier Gagnon 2922e42055 most terminal converted to ts 2021-09-16 18:10:28 -04:00