v/cmd/tools
Ryan Roden-Corrent 30fac1f877
toosl: fix `v init` - terminate newly created files with newlines, add a test (#10480)
* vcreate: Add test for `v init`.

* vcreate: Init git properly with no dir arg.

`v init` would fail to create a .gitignore file. When not providing a
dir arg, passing "" to create_git_repo would result in:

```
V panic: failed to create gitignore: failed to open file "/.gitignore"
```

* vcreate: Terminate files with newline.

Fixes #10478.
2021-06-16 19:57:51 +03:00
..
bench ci: fix byteptr cast in cmd/tools/bench/wyhash.v 2021-04-04 23:33:35 +03:00
fast tools: fix workdir for fast.v 2021-06-12 18:28:54 +03:00
fuzz cmd/tools: add map_fuzz.v (#7297) 2020-12-13 08:59:02 +01:00
modules tests: skip building psql/customer.v on macos (requires postgres) 2021-06-07 18:23:18 +03:00
vast all: new function `isreftype(T)` to know if `T` contains pointers (#10438) 2021-06-13 06:26:13 +03:00
vdoc doc: decrease letter count for search to 2 (#10214) 2021-05-27 10:17:25 +03:00
vvet vet: allow vetting of vsh files (#9997) 2021-05-04 18:25:56 +03:00
check_os_api_parity.v ci: fix a race in vlib/v/compiler_errors_test.v execution on m1 2021-04-05 22:57:59 +03:00
gen1m.v gen1m.v: update generated code (#8888) 2021-02-22 14:51:00 +02:00
gen_vc.v ci: fix `v build-tools` 2021-05-11 11:08:46 +03:00
missdoc.v vfmt: format all of cmd/ and add it to `v test-cleancode` (#9418) 2021-03-24 23:37:10 +02:00
oldv.v strings: simplify Builder (#10263) 2021-05-31 14:21:06 +03:00
performance_compare.v vfmt: fix string interpolation formatting with multiple ',",\' and \" . 2021-04-20 20:26:06 +03:00
repeat.v ci: bump up array capacities in repeat.v (workaround for segfaulting code-formatting-perf-regressions job) 2021-05-07 14:40:52 +03:00
test_if_v_test_system_works.v 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
test_os_process.v all: various fixes for [heap]/auto-heap handling (#10033) 2021-05-07 15:58:48 +03:00
vbin2v.v fmt: fail keep test when bin2v_keep preparation step fails (#9361) 2021-03-19 13:13:03 +02:00
vbug.v vbug: use readline to read expected result (#10037) 2021-05-07 19:31:43 +03:00
vbuild-examples.v ci: more args = os.args fixes 2020-12-20 19:01:15 +02:00
vbuild-tools.v tools: add `v ast file.v` (#10236) 2021-05-28 19:54:44 +03:00
vbuild-vbinaries.v ci: fix warnings/errors due to the vfmt change 2020-10-15 16:17:52 +03:00
vcheck-md.v tools: improve `v check-md` by checking for broken TOC headline links (#10417) 2021-06-14 13:12:02 +03:00
vcomplete.v x64: rename to `native` to not conflict with the x64 comptime variable 2021-04-27 12:24:58 +03:00
vcreate.v toosl: fix `v init` - terminate newly created files with newlines, add a test (#10480) 2021-06-16 19:57:51 +03:00
vcreate_test.v toosl: fix `v init` - terminate newly created files with newlines, add a test (#10480) 2021-06-16 19:57:51 +03:00
vdoctor.v tools: fix `v -prod cmd/tools/vdoctor.v` 2021-03-24 10:31:42 +02:00
vfmt.v vfmt: only print non-empty diffs (#9803) 2021-04-19 18:55:55 +03:00
vpm.v cmd/tools/vpm: improve v show (#10198) 2021-05-25 14:30:48 +03:00
vrepl.v all: bare metal support (fix `-freestanding`) (#9624) 2021-04-14 07:50:50 +02:00
vself.v vself: handle missing v_old (#9637) 2021-04-08 06:27:56 +02:00
vsetup-freetype.v 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
vsymlink.v tools,clipboard: use lowercase library names for `-luser32`etc, allowing linux->windows cross compilation of ui programs (#10455) 2021-06-14 15:42:56 +03:00
vtest-all.v tools: cleanup generated executables by `v test-all` 2021-06-15 14:28:46 +03:00
vtest-cleancode.v ci: add back vlib/net/http/cookie_test.v as an exception in vtest-cleancode.v 2021-06-14 10:20:58 +03:00
vtest-fmt.v tools: make `v test-cleancode` test everything by default (#10050) 2021-05-08 13:32:29 +03:00
vtest-parser.v all: a massive merge of ast and table modules 2021-04-02 01:57:09 +03:00
vtest-self.v ci: skip udp_test.v and tcp_test.v on windows-tcc for now 2021-06-14 13:10:20 +03:00
vtest.v tests: ignore `testdata` folders in `v test .` too 2021-06-02 21:50:31 +03:00
vtracev.v cgen: add support for `-d trace_gen` too. Add `v tracev` command. 2020-07-20 12:36:27 +03:00
vup.v vself, vup: update to use err.msg instead of err 2021-03-16 21:25:35 +02:00
vwatch.v tools: add --before and --after options to `v watch` 2021-05-16 17:50:16 +03:00
vwipe-cache.v vfmt: format all of cmd/ and add it to `v test-cleancode` (#9418) 2021-03-24 23:37:10 +02:00