* show cmd used with --verbose (even on success)
* honor -p:-u:release
* address comment
* remove --showCmds flag
* remove quoteShell
* fix#783
* Revert "fix #783"
This reverts commit af0ac004c00f17e9983c63ab99e40cd38ba6aaa4.
* fix#783 by fixing the gist instead
* Revert "fix #783 by fixing the gist instead" now that upstream gist was updated with my patch
This reverts commit 8bec86039d8335af152acf238ab14d0268e003e5.
quote arguments appropriately:
- whitespace in arguments is preserved;
previously arguments with whitespace were split
- quotes are now escaped
the exit code of the command that has been "run"
is re-used when nimble exits
show the output of the "run" command
regardless of whether nimble is debugging
* nimble run can work if only one binary in config
* usage changed
* runFile is option now
* usage updated
* small refactoring to reduce condition
* setRunOptions fix
* some code optimisation
* add git vcs and a default .nim.cfg file to the new created project
* remove the gitapi dependency
* add vcs support for new nimble project
* add vcs support for new nimble project
* update pull request #729
* add --git/hg flag instead of --vcs flag for nimble init command
The two currently not used procedures `getSpecificDir` and `doPull` from
`download.nim` file are reverted according to dom96's suggestion in the
code review of pull request #692. Now they are marked with used pragma
to disable the warning.
Related to #680
There are two issues fixed:
- With the latest Nim version sometimes the files
`<package_name>_<some_number>.nims`' generated on `nim install`
contain warning for unused imports which causes the test
"can validate package structure (#144)" to fail, because it was
searching for the word "warning" in the output.
- On Windows Subsystem for Linux, when an import starts sometimes with
a lowercase, and sometimes with an uppercase, for example
`import uri` and `import Uri`, this causes Nim to create and compile
both `stdlib_uri.nim.c` and `stdlib_Uri.nim.c` and to fail on the
linking step, because of the same symbols are being redefined.
Also the Travis CI build script is changed to test against currently the
latest working Nim version 212ae2f.
Related to #680
The directory "tests/buildDir/" where the build artifacts from the
"compilation without warnings" unit test execution are being written is
added to the .gitignore file.
Related to #680
Compilation without warnings test case on Unix systems with older Nim
version 0.19.6 had been failing before the fix, because the compiler
expects full file name to be passed after the '-o' switch, but not only
an output directory name.
Related to #680
The NimbleError exception from the version module is being used only on
Windows platforms in the packageinstaller.nim file. Conditional import
of the module is used to fix the warning.
Related to #680
An unit test which checks whether Nimble compiles without warnings is
added. Checking for three warning types cleaned in previous commits is
implemented:
- [UnusedImport] cleaned in e8c7d5c
- [Deprecated] cleaned in 3d6172e
- [XDeclaredButNotUsed] cleaned in 7df2ef3
Other types of warnings easily can be added to the test by extending the
warnings list.
Related to #680
To compile the nimscriptapi.nim file, it is needed to import the os
module, but if so the getParams procedure cannot be executed from
nimscript any more. The problem is resolved by conditionally importing
the module.
Related to #680