Cyteon / modu

Modu is a simple and fast interpreted programming language.
http://www.cyteon.tech/modu/
21 stars 7 forks source link

added "os" library #12

Closed aquiffoo closed 2 months ago

aquiffoo commented 2 months ago

added "os" library ⬇️

I decided to add an "os" library because running commands is essential. for now it only includes os.exec(command), that runs said command.

aquiffoo commented 2 months ago

shit, what's going wrong?

aquiffoo commented 2 months ago

oooh... i see! i made the changes on windows, and linux does not support the library i use in os.exec. fixing that asap

coolbeans1212 commented 2 months ago

i believe in you aquiffoo

aquiffoo commented 2 months ago

i've made the changes @Cyteon. hopefully it becomes compatible with unix-like systems now

Cyteon commented 2 months ago
   Compiling modu v0.4.0 (/var/home/cyteon/Desktop/SideProjects/modu/lang)
error[E0433]: failed to resolve: could not find `windows` in `os`
   --> src/packages/os.rs:4:14
    |
4   | use std::os::windows::process::CommandExt;
    |              ^^^^^^^ could not find `windows` in `os`
Cyteon commented 2 months ago

I'll merge and fix it myself

aquiffoo commented 2 months ago

ok, tysm

mustafaC0der commented 2 months ago

Lovely. Rn im giving exams but will try as soon as possible