diff options
| author | dacctal <120422854+dacctal@users.noreply.github.com> | 2026-03-13 02:24:10 +0000 |
|---|---|---|
| committer | dacctal <120422854+dacctal@users.noreply.github.com> | 2026-03-13 02:24:10 +0000 |
| commit | a78778866445b6f56fb80aedb7246ac2acd84a38 (patch) | |
| tree | db16024daf5c8312e8781ac40ffd8d3c14e25341 | |
init
| -rw-r--r-- | .editorconfig | 8 | ||||
| -rw-r--r-- | .gitattributes | 8 | ||||
| -rw-r--r-- | .gitignore | 27 | ||||
| -rw-r--r-- | main.v | 14 | ||||
| -rw-r--r-- | v.mod | 7 |
5 files changed, 64 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..01072ca --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.v] +indent_style = tab diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9a98968 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,8 @@ +* text=auto eol=lf +*.bat eol=crlf + +*.v linguist-language=V +*.vv linguist-language=V +*.vsh linguist-language=V +v.mod linguist-language=V +.vdocignore linguist-language=ignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8455f87 --- /dev/null +++ b/.gitignore @@ -0,0 +1,27 @@ +# Binaries for programs and plugins +main +cf +*.exe +*.exe~ +*.so +*.dylib +*.dll + +# Ignore binary output folders +bin/ + +# Ignore common editor/system specific metadata +.DS_Store +.idea/ +.vscode/ +*.iml + +# ENV +.env + +# vweb and database +*.db +*.js + +# Ignore installed modules through `v install --local`: +modules/ @@ -0,0 +1,14 @@ +module main + +import os + +fn main() { + if os.args.len < 2 { return } + for arg in os.args[1..] { + mut f := os.create(arg) or { + println('file not writable') + return + } + f.close() + } +} @@ -0,0 +1,7 @@ +Module { + name: 'cf' + description: 'create a file' + version: '0.0.0' + license: 'MIT' + dependencies: [] +} |
