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

50 Commits

Author SHA1 Message Date
Lukas Neubert
7664964c56
vfmt: format all of cmd/ and add it to v test-cleancode (#9418) 2021-03-24 23:37:10 +02:00
Delyan Angelov
d7049ae2da
os: deprecate os.exec (returning ?os.Result), in favour of os.execute, which returns os.Result (#8974) 2021-03-08 20:52:13 +02:00
yuyi
2870a5a63a
vrepl: fix array_filter (#9104) 2021-03-04 12:24:14 +02:00
Swastik Baranwal
b65ec6e867
cmd/repl: add functionality to use custom programs on the startup (#9055) 2021-03-03 07:53:05 +02:00
spaceface
b712af56fd
all: bring back panic(err.msg) -> panic(err) (#9022) 2021-03-01 00:18:14 +01:00
spaceface
d63b7bc35a
all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
Delyan Angelov
03d5bfbc95
repl: use os.temp_dir() for the temporary .noprefix.vrepl.v files 2021-02-08 09:44:04 +02:00
Delyan Angelov
e5a84719ca
all: require calling optfn() ? / optfn() or {...} for fn optfn() ? {} 2021-01-26 16:43:17 +02:00
Lukas Neubert
ac2c3847af
all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
yuyi
01e098aa77
vrepl: fix v repl on Windows (#7798) 2021-01-02 12:17:39 +01:00
cbracketdash
0210d1bf24
vrepl, term: return cursor to the top-left corner in vrepl after clear (#7600) 2020-12-27 13:43:36 +02:00
zakuro
9d71a54a61
repl: fix readline history (#7596) 2020-12-27 12:41:48 +02:00
Andréas Livet
a2ec52b8c4
builtin: rewrite string.split_nth and fix some bugs (#7189) 2020-12-08 10:51:47 +02:00
Delyan Angelov
d67e177733 ci: run v vet over cmd/tools and cmd/v too 2020-10-21 15:26:29 +03:00
Delyan Angelov
31ef921ef2 ci: fix warnings/errors due to the vfmt change 2020-10-15 16:17:52 +03:00
Delyan Angelov
62f6e65509 repl: fix reset; make echo "print(2.0 * 3.14159)" | ./v print only the result 2020-10-11 10:50:24 +03:00
Maciej Michalec
1152bbd243
repl: fix recognizing anonymous functions defs as function calls (fix #5006) (#6070) 2020-08-05 16:18:28 +02:00
Alexander Medvednikov
e9e437ce05 repl: show short version 2020-07-03 22:30:34 +02:00
yuyi
9e949622d3
vrepl: pre-imported common modules (#5643) 2020-07-03 18:06:36 +02:00
yuyi
31104d73b9
vrepl: minor optimization (#5633) 2020-07-03 11:22:34 +02:00
Maddi Kopfermann
f5fca00d37
repl: add some array functions 2020-06-28 11:24:38 +02:00
yuyi
5f36874c9b
vrepl: fix optional call 2020-06-24 12:45:48 +02:00
Adam Stankiewicz
471c931ada
os: do not trim space from output of exec 2020-06-14 01:41:47 +02:00
yuyi
d4ddfa7e86
vrepl: make work with paths with spaces 2020-06-08 10:29:51 +02:00
Ned Palacios
3aeaa24df6
repl: fix for-loop/if statement duplicate printing bug 2020-05-25 11:35:55 +03:00
Delyan Angelov
465dc685cc repl: treat =x at the start of a new line, the same as println(x) 2020-05-24 14:16:38 +03:00
Ned Palacios
c95a1138ba
repl: fix one-line for-loop printing 2020-05-24 11:36:17 +03:00
Maddi Kopfermann
96a8eaabc5
repl: handle assigning anonymous function to a variable 2020-05-19 14:15:01 +03:00
yuyi
7f4cf08516
parser: check (mut f Foo) syntax 2020-05-17 13:51:18 +02:00
yuyi
02fb393747
test: fix vrepl and cast test errors 2020-05-17 02:13:08 +02:00
Delyan Angelov
62cb48d252 repl: treat middle imports in a more forgiving way 2020-05-16 22:03:28 +03:00
Delyan Angelov
a3a19e899d repl: implement list and reset commands 2020-05-16 18:20:47 +00:00
Delyan Angelov
7a404af097 repl: detect fn/enums/struct/const/interface declarations too 2020-05-16 14:40:54 +03:00
Maddi Kopfermann
d73bedc1fb
vrepl: fix declaring structs 2020-05-15 16:12:15 +03:00
yuyi
14bba54ddc
vrepl: fix array_init error
* optimize print conditions
2020-05-11 07:15:08 +03:00
eyelash
f396f70ae7
repl: fix newline in error messages 2020-05-10 16:26:56 +02:00
yuyi
8866773f97
vrepl: fix import and comment error in the middle of other lines 2020-05-08 09:34:59 +03:00
yuyi
b4e4e6bb21
vrepl: fix cleanup on windows 2020-05-03 18:13:37 +02:00
Delyan Angelov
b898970031 cmd/tools: use same line imports too 2020-04-26 09:32:05 +03:00
yuyi
3b00132e14
repl: fix << 2020-04-19 21:52:46 +02:00
Delyan Angelov
084f853a2a
v2: enhance version with current git commit hash. Cleanup redundant code. 2020-04-02 13:31:02 +02:00
yuyi
ed42b864c1
term: fix #4066 2020-03-27 10:01:46 +01:00
yuyi
2f27758a4b
os: realpath => real_path 2020-03-20 16:41:18 +01:00
yuyi
876b73f92c
os: join => join_path 2020-03-09 02:23:34 +01:00
yuyi
783dee1f48
os: merge with filepath 2020-03-07 22:26:26 +01:00
lutherwenxu
aab31f4b35
cmd/v: rewrite flags 2020-03-06 18:53:29 +01:00
yuyi
ea10f44fe6
os api: flush_stdout => flush 2020-03-03 00:00:30 +01:00
Major Taylor
72f80461de
repl: add newline on exit 2020-02-22 12:41:57 +01:00
yuyi
e272a10bda
vfmt fixes 2020-02-16 12:42:28 +01:00
lutherwenxu
9332a83ce6
move v.v to cmd/v 2020-02-09 10:08:04 +01:00