From 26f8d29ab4c649e9e581661bfd68c04ecbcf5f4e Mon Sep 17 00:00:00 2001 From: Andy Stanton Date: Sun, 19 Apr 2015 22:19:51 +0100 Subject: [PATCH] Prepare for release --- .goxc.json | 1 - CHANGELOG.md | 36 ++++++++++++++++++++++++++++++++++++ README.md | 18 +++++------------- cli.go | 2 +- 4 files changed, 42 insertions(+), 15 deletions(-) create mode 100644 CHANGELOG.md diff --git a/.goxc.json b/.goxc.json index dce4a2f..293c398 100644 --- a/.goxc.json +++ b/.goxc.json @@ -1,5 +1,4 @@ { - "PrereleaseInfo": "snapshot", "PackageVersion": "1.0.1", "ConfigVersion": "0.9", "TaskSettings": { diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..66d512a --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,36 @@ +# Change Log +All notable changes to this project will be documented in this file. +This project adheres to [Semantic Versioning](http://semver.org/). + +## [Unreleased][unreleased] + +## [1.0.1] - 2015-04-20 +### Added +- New languages: R, Nim and Lua. +- Support for Perl 6 via .p6 extension. +- Ability to specify the image used with --specify-image or -s. + +### Changed +- Perl 5 is now the default for .pl extension. +- Version command is now suffixed with newline. +- Fixed typo in RunDexecContainer comments. + +### Fixed +- Bug in IsDockerPresent and IsDockerPresent where defer method was not correctly called on panic. +- Corrected how paths are handled in Windows allowing volumes to be mounted. + +## 1.0.0 - 2015-04-06 +### Added +- Command line interface 'dexec'. +- Ability to pass source files to container. +- Container image selected based on source file extension. +- Support for Bash, C, Clojure, CoffeeScript, C++, C#, D, Erlang, F#, Go, Groovy, Haskell, Java, Lisp, Node JS, Objective C, OCaml, Perl, PHP, Python, Racket, Ruby, Rust & Scala. +- Ability to pass arguments to the language's compiler if it has one with --build-arg or -b. +- Ability to pass arguments to the executing code with --arg or -a. +- Ability to pass other files or folders to be mounted in the container with --include or -i. +- Ability to augment source files with a shebang resulting in dexec being called. +- Help dialog. +- Version dialog. + +[unreleased]: https://github.com/docker-exec/dexec/compare/v1.0.1...HEAD +[1.0.1]: https://github.com/docker-exec/dexec/compare/v1.0.0...v1.0.1 diff --git a/README.md b/README.md index bb91d31..d3e33cc 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A command line utility for executing code in many different languages using the Docker Exec images, written in Go. -![dexec demo animation](https://docker-exec.github.io/images/dexec-short.gif) +![dexec demo animation](https://docker-exec.github.io/images/dexec-short-1.0.1.gif) ## Installation @@ -12,11 +12,11 @@ Download the appropriate binary for your OS and architecture, then unzip or unta | OS | 64-bit | 32-bit | | ------- | ------ | ------ | -| Linux | [64-bit](https://bintray.com/artifact/download/dexec/release/dexec_1.0.0_linux_amd64.tar.gz) | [32-bit](https://bintray.com/artifact/download/dexec/release/dexec_1.0.0_linux_386.tar.gz) | -| Mac | [64-bit](https://bintray.com/artifact/download/dexec/release/dexec_1.0.0_darwin_amd64.zip) | [32-bit](https://bintray.com/artifact/download/dexec/release/dexec_1.0.0_darwin_386.zip) | -| Windows | [64-bit](https://bintray.com/artifact/download/dexec/release/dexec_1.0.0_windows_amd64.zip) | [32-bit](https://bintray.com/artifact/download/dexec/release/dexec_1.0.0_windows_386.zip) | +| Linux | [64-bit](https://bintray.com/artifact/download/dexec/release/dexec_1.0.1_linux_amd64.tar.gz) | [32-bit](https://bintray.com/artifact/download/dexec/release/dexec_1.0.1_linux_386.tar.gz) | +| Mac | [64-bit](https://bintray.com/artifact/download/dexec/release/dexec_1.0.1_darwin_amd64.zip) | [32-bit](https://bintray.com/artifact/download/dexec/release/dexec_1.0.1_darwin_386.zip) | +| Windows | [64-bit](https://bintray.com/artifact/download/dexec/release/dexec_1.0.1_windows_amd64.zip) | [32-bit](https://bintray.com/artifact/download/dexec/release/dexec_1.0.1_windows_386.zip) | -Binaries for other distributions are available on [Bintray](https://bintray.com/dexec/release/dexec/1.0.0). +Binaries for other distributions are available on [Bintray](https://bintray.com/dexec/release/dexec/1.0.1). ### Using Go @@ -30,8 +30,6 @@ $ go get github.com/docker-exec/dexec These examples use a .cpp source file, but any of the supported languages can be used instead. Arguments can be passed in any order, using any style of the acceptable switch styles described. -If you are using boot2docker by default the only paths that can be mounted are in the operating system's users directory. See Docker's page on [managing data in containers](https://docs.docker.com/userguide/dockervolumes/#mount-a-host-directory-as-a-data-volume) for more information. - The application provides help and version information as follows: ```sh @@ -78,12 +76,6 @@ By default, ```dexec``` assumes the sources are in the directory from which it i $ dexec -C /path/to/sources foo.cpp bar.cpp ``` -Use the following form on Windows (as opposed to /c/path/to/sources): - -```sh -$ dexec -C C:\path\to\sources foo.cpp bar.cpp -``` - ### Include files and folders mounted in Docker container Individual files can be mounted without being passed to the compiler, for example header files in C & C++, or input files for program execution. These can be included in the following way. diff --git a/cli.go b/cli.go index 24a1623..924d927 100644 --- a/cli.go +++ b/cli.go @@ -161,5 +161,5 @@ func DisplayHelp(filename string) { // DisplayVersion prints the version information for the program. func DisplayVersion(filename string) { - fmt.Printf("%s 1.0.1-snapshot", filename) + fmt.Printf("%s 1.0.1\n", filename) }