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

29 Commits

Author SHA1 Message Date
Ryan Roden-Corrent
f0ad0b024e
v init: create a .gitignore in existing git repo if it does not exist yet (#10488) 2021-06-19 21:36:12 +03:00
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
Pranav Baburaj
da88235bdc
vpm: addd a show command (#10186) 2021-05-24 15:17:57 +03:00
Delyan Angelov
04095f4088
ci: fix failing v -W build-tools and v -W build-examples; run vfmt. 2021-03-19 09:49:26 +02:00
StunxFS
e09a8a47b0
vcreate: minor tweaks (#9275) 2021-03-13 08:43:12 +02:00
StunxFS
cd087515fb
vcreate: use underscores instead of spaces for names (#9257) 2021-03-12 16:09:43 +01: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
Patrick Hintermayer
ba95995a51
v new: support setting version and license too (#9168) 2021-03-07 11:38:56 +02:00
zakuro
7a9d9f1e78
v new: accept name and description from argument (#9142) 2021-03-06 21:03:20 +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
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
Emily Hudson
cd2a2cef25
vlib/net: add buffered IO, x.net -> net (#6754) 2020-11-15 22:54:47 +02:00
Delyan Angelov
31ef921ef2 ci: fix warnings/errors due to the vfmt change 2020-10-15 16:17:52 +03:00
Anton Zavodchikov
a6f7f0ac8a
vcreate: gitignore executable files (#6585) 2020-10-09 15:56:43 +02:00
Lukas Neubert
eabc2daf86
v.mod: remove commas; add example for v.vmod (#6169) 2020-08-19 16:07:10 +02:00
Delyan Angelov
411eaadc15 CI: make sure vcreate.v is not skipped by v build-tools 2020-07-18 10:42:08 +03:00
Lukas Neubert
10e0c39115
vcreate: various fixes and improvements (#5786) 2020-07-10 18:09:08 +02:00
Delyan Angelov
1d24fecc1b cmd: fix building gen_vc.v and vcreate.v by v build-tools 2020-07-08 14:29:55 +03:00
pancake
b3f2c629c6
builder: use .dylib for -shared builds in macOS 2020-05-29 04:52:19 +02:00
Ned Palacios
ae3df002a2
vmod: add v.mod parser 2020-05-18 14:35:28 +02:00
Delyan Angelov
b898970031 cmd/tools: use same line imports too 2020-04-26 09:32:05 +03:00
Alexander Medvednikov
2fbed2f880 cgen: fix _ = ... 2020-04-08 00:46:16 +02:00
Major Taylor
efeea40520
tools: 'v create' -> 'v new' 2020-04-07 19:37:15 +02:00
yuyi
010f3efcf0
os: filename => file_name 2020-03-19 15:49:07 +01:00
Major Taylor
c546e88577
vcreate: add init command 2020-03-15 11:20:12 +01:00
yuyi
5a6f4aa61d
vcreate: optimizations and small fixes 2020-02-13 19:27:13 +01:00
lutherwenxu
9332a83ce6
move v.v to cmd/v 2020-02-09 10:08:04 +01:00