Added changelog entry. Improved readme.

This commit is contained in:
Dominik Picheta 2014-12-26 01:32:10 +00:00
commit 875786d34f
3 changed files with 26 additions and 3 deletions

View file

@ -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.

View file

@ -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``,

View file

@ -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] = @[]