1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: implement a JS version of os.join_path_single too

This commit is contained in:
Delyan Angelov 2021-11-22 15:03:05 +02:00
parent 7a0dc60d04
commit 6a252ed015
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -102,6 +102,11 @@ pub fn join_path(base string, dirs ...string) string {
return res return res
} }
pub fn join_path_single(base string, elem string) string {
// TODO: deprecate this
return join_path(base, elem)
}
pub fn execute(cmd string) Result { pub fn execute(cmd string) Result {
mut exit_code := 0 mut exit_code := 0
mut stdout := '' mut stdout := ''