From 875786d34fc4e342eb2fdc849d6d84718c615e84 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Fri, 26 Dec 2014 01:32:10 +0000 Subject: [PATCH] Added changelog entry. Improved readme. --- changelog.markdown | 16 ++++++++++++++++ readme.markdown | 5 +++++ src/nimble.nim | 8 +++++--- 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/changelog.markdown b/changelog.markdown index 7853e6f..fc43088 100644 --- a/changelog.markdown +++ b/changelog.markdown @@ -1,5 +1,21 @@ # Babel changelog +## 0.6.0 - 26/12/2014 + +* Renamed from Babel to Nimble +* Introduces compatibility with Nim v0.10.0+ +* Implemented the ``init`` command which generates a .nimble file for new + projects. (Thank you + [@singularperturbation](https://github.com/singularperturbation)) +* Improved cloning of git repositories. +* Fixes ``path`` command issues (thank you [@gradha](https://github.com/gradha)) +* Fixes problems with symlinking when there is a space in the path. + (Thank you [@philip-wernersbach](https://github.com/philip-wernersbach)) +* The code page will now be changed when executing Nimble binary packages. + This adds support for Unicode in cmd.exe (#54). +* ``.cmd`` files are now used in place of ``.bat`` files. Shell files for + Cygwin/Git bash are also now created. + ## 0.4.0 - 24/06/2014 * Introduced the ability to delete packages. diff --git a/readme.markdown b/readme.markdown index e57377e..4a33040 100644 --- a/readme.markdown +++ b/readme.markdown @@ -215,6 +215,11 @@ which can be useful to read the bundled documentation. Example: $ cd `nimble path argument_parser` $ less README.md +### nimble init + +The nimble ``init`` command will start a simple wizard which will create +a quick ``.nimble`` file for your project. + ## Configuration At startup Nimble will attempt to read ``$AppDir/nimble/nimble.ini``, diff --git a/src/nimble.nim b/src/nimble.nim index 8ee6bea..6bb23c8 100644 --- a/src/nimble.nim +++ b/src/nimble.nim @@ -715,7 +715,7 @@ proc init(options: TOptions) = if (options.action.projName != ""): pkgName = options.action.projName fName = pkgName & ".nimble" - if ( existsFile( os.getCurrentDir() / fName ) ): + if (existsFile(os.getCurrentDir() / fName)): raise newException(ENimble, "Already have a nimble file.") else: echo("Enter a project name for this (blank to use working directory), Ctrl-C to abort:") @@ -728,7 +728,8 @@ proc init(options: TOptions) = # Now need to write out .nimble file with projName and other details - if (not existsFile(os.getCurrentDir() / fName) and open(f=outFile, filename = fName, mode = fmWrite)): + if (not existsFile(os.getCurrentDir() / fName) and + open(f=outFile, filename = fName, mode = fmWrite)): outFile.writeln("[Package]") outFile.writeln("name = \"" & pkgName & "\"") outFile.writeln("version = \"0.1.0\"") @@ -741,7 +742,8 @@ proc init(options: TOptions) = close(outFile) else: - raise newException(ENimble, "Unable to open file " & fName & " for writing: " & osErrorMsg()) + raise newException(ENimble, "Unable to open file " & fName & + " for writing: " & osErrorMsg()) proc uninstall(options: TOptions) = var pkgsToDelete: seq[TPackageInfo] = @[]