You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let _r = set_cont(".gitignore".to_string(), cont);
45
-
}else{
46
-
let r = set_cont(".gitignore".to_string(),"# Nyson\ndep".to_string());
47
-
if r.is_err(){
48
-
run::error("Could not set file contents.".to_string());
49
-
}
50
-
}
51
-
make_path("".to_string());
52
-
std::process::exit(1);
53
-
}elseif arg == "--init"{
54
-
let r = set_cont("Nyson.json".to_string(),"{\n\t\"name\": \"My Program\",\n\t\"dep\": {\n\t\t\"Example\": \"https://github.com/Nyson-Programing-Language/example-dep.git\"\n\t}\n}".to_string());
55
-
if r.is_err(){
56
-
run::error("Could not set file contents.".to_string());
57
-
}
58
-
let r = fs::create_dir("src");
59
-
if r.is_err(){
60
-
run::error("Could not create dir.".to_string());
61
-
}
62
-
let r = set_cont(
63
-
"src/main.nys".to_string(),
64
-
"log(\"Hello World\");".to_string(),
65
-
);
66
-
if r.is_err(){
67
-
run::error("Could not set file contents.".to_string());
0 commit comments