mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +03:00
tools.vcreate: rework cli arg handling to extend scaffolding and fix issues (#19889)
This commit is contained in:
parent
9308bcd48a
commit
e9258c2a08
16 changed files with 237 additions and 139 deletions
|
@ -3,9 +3,9 @@ module main
|
|||
import os
|
||||
|
||||
fn (mut c Create) set_bin_project_files() {
|
||||
main_path := os.join_path('src', 'main.v')
|
||||
base := if c.new_dir { c.name } else { '' }
|
||||
c.files << ProjectFiles{
|
||||
path: if c.new_dir { os.join_path(c.name, main_path) } else { main_path }
|
||||
path: os.join_path(base, 'src', 'main.v')
|
||||
content: "module main
|
||||
|
||||
fn main() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue