Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: prompt for project meta data on
v init
too (#19747)
- Loading branch information
Showing
5 changed files
with
83 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env expect | ||
|
||
set timeout 3 | ||
|
||
# Pass v_root as arg, since we chdir into a temp directory during testing and create a project there. | ||
set v_root [lindex $argv 0] | ||
|
||
spawn $v_root/v init | ||
|
||
expect "Input your project description: " { send "\r" } timeout { exit 1 } | ||
expect "Input your project version: (0.0.0) " { send "\r" } timeout { exit 1 } | ||
expect "Input your project license: (MIT) " { send "\r" } timeout { exit 1 } | ||
expect "Complete!" {} timeout {} timeout { exit 1 } | ||
|
||
expect eof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters