Loading .travis.yml +4 −19 Original line number Diff line number Diff line Loading @@ -7,23 +7,8 @@ matrix: - go: 1.5 script: - GOARCH=amd64 GOOS=linux go build tmplt.go && mv tmplt tmplt_linux_64 && tar czvf tmplt-0.1.0-linux_amd64.tgz tmplt_linux_64 - GOARCH=amd64 GOOS=darwin go build tmplt.go && mv tmplt tmplt_darwin_64 && tar czvf tmplt-0.1.0-darwin_amd64.tgz tmplt_darwin_64 - GOARCH=amd64 GOOS=linux go build boilr.go && mv boilr boilr_linux_64 && tar czvf boilr-0.1.0-linux_amd64.tgz boilr_linux_64 - GOARCH=amd64 GOOS=darwin go build boilr.go && mv boilr boilr_darwin_64 && tar czvf boilr-0.1.0-darwin_amd64.tgz boilr_darwin_64 - GOARCH=386 GOOS=linux go build tmplt.go && mv tmplt tmplt_linux_32 && tar czvf tmplt-0.1.0-linux_386.tgz tmplt_linux_32 - GOARCH=386 GOOS=darwin go build tmplt.go && mv tmplt tmplt_darwin_32 && tar czvf tmplt-0.1.0-darwin_386.tgz tmplt_darwin_32 deploy: provider: releases skip_cleanup: true api_key: secure: W2mjI9R3ZnB7QsYuJitwT/h+7jR/Pj6WSjKERLerRPN0z5nbCCJdTkw7r9gsGBblT2AMHx7qxws2S5AMS4MypJNmOj0ZW5TWiDkobAOENUbjGEjxii2yLuNxcsBE5Ets1s5dPB/RpvHh/PGTC5IX80ISVosRVTQ+ABexuLsFWcG/CpmV/Tb1BxWso3kP2UvupF3XwDJoM2a/hNQXvyzZoO7FVLD/YiWvRNPf9zqrDow3wRAg3YLHqIaHJ2V68rqXb+x/FQ4YpD21tBAAIJc1NSttOXQ3xEyhTMQP0Ba2z+FOvYBVxVJgrBZiV7B6F26GjLHBb104sLTprF6xVQKN6AcPLzgBMO6jZ2apr+On0nglMl4nRbE7TRdEzCZbEzHGxbxAhCdArObuVQN09+MNnUYtJDv/xzkwEpK1NbG/3sEL8zKhJrEYznNWCONKTHgXWp7o8pljOcV4A8nDVKVjul5/VMaZ5Swgs0BQ6QeU+EaprWP6hGuccGLUH+ZX8Wqnl7hV+rRzYIYEeR8d1df3pMUGmnWLJsbI+0K/OcAbqMCmEUBM15XX6+yaHrP1RZQTOKH8F2NR+oVl9EHEQZCt3J4DlSVzB86vkMvXgFuWXq6Q3uJSyUiOnRhGJdykHXNwdvIlkmidyVLIeKTdfCW+I4HoTHBi1/zvmm5sD1Idt2o= file: tmplt-0.1.0-darwin_386.tgz file: tmplt-0.1.0-darwin_amd64.tgz file: tmplt-0.1.0-linux_386.tgz file: tmplt-0.1.0-linux_amd64.tgz on: tags: true - GOARCH=386 GOOS=linux go build boilr.go && mv boilr boilr_linux_32 && tar czvf boilr-0.1.0-linux_386.tgz boilr_linux_32 - GOARCH=386 GOOS=darwin go build boilr.go && mv boilr boilr_darwin_32 && tar czvf boilr-0.1.0-darwin_386.tgz boilr_darwin_32 README.md +7 −7 Original line number Diff line number Diff line # tmplt # boilr Are you doing the same steps over and over again every time you start a new programming project? `tmplt` is a powerful language-agnostic command-line project templating scaffolding tool here to help you. `boilr` is a powerful language-agnostic command-line project templating scaffolding tool here to help you. For lots of more details, see [the Wiki page](https://github.com/tmrts/tmplt/wiki/Introduction). For lots of more details, see [the Wiki page](https://github.com/tmrts/boilr/wiki/Introduction). # Features - Blazingly Fast Loading @@ -12,15 +12,15 @@ For lots of more details, see [the Wiki page](https://github.com/tmrts/tmplt/wik # How do I get it? There are binaries available for Linux & OSX. You can download them directly, or run the installation script. Please see [the Wiki page](https://github.com/tmrts/tmplt/wiki/Installation) for more information. or run the installation script. Please see [the Wiki page](https://github.com/tmrts/boilr/wiki/Installation) for more information. # Usage To use templates shared by others and create your own please take a look at the [Usage](https://github.com/tmrts/tmplt/wiki/Usage) and [Creating Templates](https://github.com/tmrts/tmplt/wiki/Creating-Templates) [Usage](https://github.com/tmrts/boilr/wiki/Usage) and [Creating Templates](https://github.com/tmrts/boilr/wiki/Creating-Templates) pages in the wiki. # Template Catalog Take a look at [the Wiki page](https://github.com/tmrts/tmplt/wiki/Templates) for a list of project templates, examples, and more information. Take a look at [the Wiki page](https://github.com/tmrts/boilr/wiki/Templates) for a list of project templates, examples, and more information. # Contributing If you'd like to contribute, share your opinions or learn more, please feel free to open an issue. Loading @@ -28,7 +28,7 @@ If you'd like to contribute, share your opinions or learn more, please feel free At this stage, user feedback is of **utmost importance**, every contribution is welcome however small it may be. ## Reporting Issues You can report issues **directly from the command-line** by using the command, `tmplt report`. You can report issues **directly from the command-line** by using the command, `boilr report`. A markdown file will be opened where the first line is the issue title and the rest is the issue body. Loading tmplt.go→boilr.go +1 −1 Original line number Diff line number Diff line package main import "github.com/tmrts/tmplt/pkg/cmd" import "github.com/tmrts/boilr/pkg/cmd" func main() { cmd.Run() Loading install +17 −17 Original line number Diff line number Diff line Loading @@ -20,10 +20,10 @@ ask() { } symlink() { echo " - Creating symlink: bin/$1 -> bin/tmplt" echo " - Creating symlink: bin/$1 -> bin/boilr" (cd "$HOME"/bin && rm -f tmplt && ln -sf $1 tmplt) rm -f boilr && ln -sf $1 boilr) if [ $? -ne 0 ]; then binary_error="Failed to create symlink" return 1 Loading @@ -31,17 +31,17 @@ symlink() { } initialize() { mkdir -p "$HOME"/.config/tmplt/templates mkdir -p "$HOME"/.config/boilr/templates if [ $? -ne 0 ]; then binary_error="Failed to create .config/tmplt directory" binary_error="Failed to create .config/boilr directory" return fi } check_binary() { echo -n " - Checking tmplt executable ... " echo -n " - Checking boilr executable ... " local output output=$("$HOME"/bin/tmplt version 2>&1) output=$("$HOME"/bin/boilr version 2>&1) if [ $? -ne 0 ]; then echo "Error: $output" binary_error="Invalid binary" Loading @@ -53,24 +53,24 @@ check_binary() { binary_error="" return 0 fi rm -f "$HOME"/bin/tmplt rm -f "$HOME"/bin/boilr return 1 } download() { echo "Downloading tmplt ..." echo "Downloading boilr ..." if [ -x "$HOME"/bin/tmplt ]; then if [ -x "$HOME"/bin/boilr ]; then echo " - Already exists" check_binary && return fi if [ -x "$HOME"/bin/$1 ]; then symlink $1 && check_binary && return fi if which_tmplt="$(which tmplt 2> /dev/null)"; then if which_boilr="$(which boilr 2> /dev/null)"; then echo " - Found in \$PATH" echo " - Creating symlink: $which_tmplt -> bin/tmplt" (cd "$HOME"/bin && rm -f tmplt && ln -sf "$which_tmplt" tmplt) echo " - Creating symlink: $which_boilr -> bin/boilr" (cd "$HOME"/bin && rm -f boilr && ln -sf "$which_boilr" boilr) check_binary && return fi Loading @@ -80,7 +80,7 @@ download() { return fi local url=https://github.com/tmrts/tmplt/releases/download/$version/${1}.tgz local url=https://github.com/tmrts/boilr/releases/download/$version/${1}.tgz if which curl > /dev/null; then curl -fL $url | tar -xz elif which wget > /dev/null; then Loading @@ -105,13 +105,13 @@ binary_error="" case "$archi" in Darwin\ x86_64) download fzf-$version-darwin_${binary_arch:-amd64} ;; Darwin\ i*86) download fzf-$version-darwin_${binary_arch:-386} ;; Linux\ x86_64) download tmplt-$version-linux_${binary_arch:-amd64} ;; Linux\ i*86) download tmplt-$version-linux_${binary_arch:-386} ;; Linux\ x86_64) download boilr-$version-linux_${binary_arch:-amd64} ;; Linux\ i*86) download boilr-$version-linux_${binary_arch:-386} ;; *) binary_available=0 binary_error=1 ;; esac cat << EOF Completed installation For more information, see: https://github.com/tmrts/tmplt For more information, see: https://github.com/tmrts/boilr EOF pkg/tmplt/configuration.go→pkg/boilr/configuration.go +8 −8 Original line number Diff line number Diff line package tmplt package boilr import ( "encoding/json" Loading @@ -7,15 +7,15 @@ import ( "os" "path/filepath" "github.com/tmrts/tmplt/pkg/util/exit" "github.com/tmrts/tmplt/pkg/util/osutil" "github.com/tmrts/tmplt/pkg/util/tlog" "github.com/tmrts/boilr/pkg/util/exit" "github.com/tmrts/boilr/pkg/util/osutil" "github.com/tmrts/boilr/pkg/util/tlog" ) const ( AppName = "tmplt" AppName = "boilr" Version = "0.0.1" ConfigDirPath = ".config/tmplt" ConfigDirPath = ".config/boilr" ConfigFileName = "config.json" TemplateDir = "templates" Loading @@ -25,7 +25,7 @@ const ( TemplateMetadataName = "__metadata.json" GithubOwner = "tmrts" GithubRepo = "tmplt" GithubRepo = "boilr" ) var Configuration = struct { Loading Loading @@ -58,7 +58,7 @@ func init() { return } // Read .config/tmplt/config.json if exists // Read .config/boilr/config.json if exists // TODO use defaults if config.json doesn't exist hasConfig, err := osutil.FileExists(Configuration.FilePath) if err != nil { Loading Loading
.travis.yml +4 −19 Original line number Diff line number Diff line Loading @@ -7,23 +7,8 @@ matrix: - go: 1.5 script: - GOARCH=amd64 GOOS=linux go build tmplt.go && mv tmplt tmplt_linux_64 && tar czvf tmplt-0.1.0-linux_amd64.tgz tmplt_linux_64 - GOARCH=amd64 GOOS=darwin go build tmplt.go && mv tmplt tmplt_darwin_64 && tar czvf tmplt-0.1.0-darwin_amd64.tgz tmplt_darwin_64 - GOARCH=amd64 GOOS=linux go build boilr.go && mv boilr boilr_linux_64 && tar czvf boilr-0.1.0-linux_amd64.tgz boilr_linux_64 - GOARCH=amd64 GOOS=darwin go build boilr.go && mv boilr boilr_darwin_64 && tar czvf boilr-0.1.0-darwin_amd64.tgz boilr_darwin_64 - GOARCH=386 GOOS=linux go build tmplt.go && mv tmplt tmplt_linux_32 && tar czvf tmplt-0.1.0-linux_386.tgz tmplt_linux_32 - GOARCH=386 GOOS=darwin go build tmplt.go && mv tmplt tmplt_darwin_32 && tar czvf tmplt-0.1.0-darwin_386.tgz tmplt_darwin_32 deploy: provider: releases skip_cleanup: true api_key: secure: W2mjI9R3ZnB7QsYuJitwT/h+7jR/Pj6WSjKERLerRPN0z5nbCCJdTkw7r9gsGBblT2AMHx7qxws2S5AMS4MypJNmOj0ZW5TWiDkobAOENUbjGEjxii2yLuNxcsBE5Ets1s5dPB/RpvHh/PGTC5IX80ISVosRVTQ+ABexuLsFWcG/CpmV/Tb1BxWso3kP2UvupF3XwDJoM2a/hNQXvyzZoO7FVLD/YiWvRNPf9zqrDow3wRAg3YLHqIaHJ2V68rqXb+x/FQ4YpD21tBAAIJc1NSttOXQ3xEyhTMQP0Ba2z+FOvYBVxVJgrBZiV7B6F26GjLHBb104sLTprF6xVQKN6AcPLzgBMO6jZ2apr+On0nglMl4nRbE7TRdEzCZbEzHGxbxAhCdArObuVQN09+MNnUYtJDv/xzkwEpK1NbG/3sEL8zKhJrEYznNWCONKTHgXWp7o8pljOcV4A8nDVKVjul5/VMaZ5Swgs0BQ6QeU+EaprWP6hGuccGLUH+ZX8Wqnl7hV+rRzYIYEeR8d1df3pMUGmnWLJsbI+0K/OcAbqMCmEUBM15XX6+yaHrP1RZQTOKH8F2NR+oVl9EHEQZCt3J4DlSVzB86vkMvXgFuWXq6Q3uJSyUiOnRhGJdykHXNwdvIlkmidyVLIeKTdfCW+I4HoTHBi1/zvmm5sD1Idt2o= file: tmplt-0.1.0-darwin_386.tgz file: tmplt-0.1.0-darwin_amd64.tgz file: tmplt-0.1.0-linux_386.tgz file: tmplt-0.1.0-linux_amd64.tgz on: tags: true - GOARCH=386 GOOS=linux go build boilr.go && mv boilr boilr_linux_32 && tar czvf boilr-0.1.0-linux_386.tgz boilr_linux_32 - GOARCH=386 GOOS=darwin go build boilr.go && mv boilr boilr_darwin_32 && tar czvf boilr-0.1.0-darwin_386.tgz boilr_darwin_32
README.md +7 −7 Original line number Diff line number Diff line # tmplt # boilr Are you doing the same steps over and over again every time you start a new programming project? `tmplt` is a powerful language-agnostic command-line project templating scaffolding tool here to help you. `boilr` is a powerful language-agnostic command-line project templating scaffolding tool here to help you. For lots of more details, see [the Wiki page](https://github.com/tmrts/tmplt/wiki/Introduction). For lots of more details, see [the Wiki page](https://github.com/tmrts/boilr/wiki/Introduction). # Features - Blazingly Fast Loading @@ -12,15 +12,15 @@ For lots of more details, see [the Wiki page](https://github.com/tmrts/tmplt/wik # How do I get it? There are binaries available for Linux & OSX. You can download them directly, or run the installation script. Please see [the Wiki page](https://github.com/tmrts/tmplt/wiki/Installation) for more information. or run the installation script. Please see [the Wiki page](https://github.com/tmrts/boilr/wiki/Installation) for more information. # Usage To use templates shared by others and create your own please take a look at the [Usage](https://github.com/tmrts/tmplt/wiki/Usage) and [Creating Templates](https://github.com/tmrts/tmplt/wiki/Creating-Templates) [Usage](https://github.com/tmrts/boilr/wiki/Usage) and [Creating Templates](https://github.com/tmrts/boilr/wiki/Creating-Templates) pages in the wiki. # Template Catalog Take a look at [the Wiki page](https://github.com/tmrts/tmplt/wiki/Templates) for a list of project templates, examples, and more information. Take a look at [the Wiki page](https://github.com/tmrts/boilr/wiki/Templates) for a list of project templates, examples, and more information. # Contributing If you'd like to contribute, share your opinions or learn more, please feel free to open an issue. Loading @@ -28,7 +28,7 @@ If you'd like to contribute, share your opinions or learn more, please feel free At this stage, user feedback is of **utmost importance**, every contribution is welcome however small it may be. ## Reporting Issues You can report issues **directly from the command-line** by using the command, `tmplt report`. You can report issues **directly from the command-line** by using the command, `boilr report`. A markdown file will be opened where the first line is the issue title and the rest is the issue body. Loading
tmplt.go→boilr.go +1 −1 Original line number Diff line number Diff line package main import "github.com/tmrts/tmplt/pkg/cmd" import "github.com/tmrts/boilr/pkg/cmd" func main() { cmd.Run() Loading
install +17 −17 Original line number Diff line number Diff line Loading @@ -20,10 +20,10 @@ ask() { } symlink() { echo " - Creating symlink: bin/$1 -> bin/tmplt" echo " - Creating symlink: bin/$1 -> bin/boilr" (cd "$HOME"/bin && rm -f tmplt && ln -sf $1 tmplt) rm -f boilr && ln -sf $1 boilr) if [ $? -ne 0 ]; then binary_error="Failed to create symlink" return 1 Loading @@ -31,17 +31,17 @@ symlink() { } initialize() { mkdir -p "$HOME"/.config/tmplt/templates mkdir -p "$HOME"/.config/boilr/templates if [ $? -ne 0 ]; then binary_error="Failed to create .config/tmplt directory" binary_error="Failed to create .config/boilr directory" return fi } check_binary() { echo -n " - Checking tmplt executable ... " echo -n " - Checking boilr executable ... " local output output=$("$HOME"/bin/tmplt version 2>&1) output=$("$HOME"/bin/boilr version 2>&1) if [ $? -ne 0 ]; then echo "Error: $output" binary_error="Invalid binary" Loading @@ -53,24 +53,24 @@ check_binary() { binary_error="" return 0 fi rm -f "$HOME"/bin/tmplt rm -f "$HOME"/bin/boilr return 1 } download() { echo "Downloading tmplt ..." echo "Downloading boilr ..." if [ -x "$HOME"/bin/tmplt ]; then if [ -x "$HOME"/bin/boilr ]; then echo " - Already exists" check_binary && return fi if [ -x "$HOME"/bin/$1 ]; then symlink $1 && check_binary && return fi if which_tmplt="$(which tmplt 2> /dev/null)"; then if which_boilr="$(which boilr 2> /dev/null)"; then echo " - Found in \$PATH" echo " - Creating symlink: $which_tmplt -> bin/tmplt" (cd "$HOME"/bin && rm -f tmplt && ln -sf "$which_tmplt" tmplt) echo " - Creating symlink: $which_boilr -> bin/boilr" (cd "$HOME"/bin && rm -f boilr && ln -sf "$which_boilr" boilr) check_binary && return fi Loading @@ -80,7 +80,7 @@ download() { return fi local url=https://github.com/tmrts/tmplt/releases/download/$version/${1}.tgz local url=https://github.com/tmrts/boilr/releases/download/$version/${1}.tgz if which curl > /dev/null; then curl -fL $url | tar -xz elif which wget > /dev/null; then Loading @@ -105,13 +105,13 @@ binary_error="" case "$archi" in Darwin\ x86_64) download fzf-$version-darwin_${binary_arch:-amd64} ;; Darwin\ i*86) download fzf-$version-darwin_${binary_arch:-386} ;; Linux\ x86_64) download tmplt-$version-linux_${binary_arch:-amd64} ;; Linux\ i*86) download tmplt-$version-linux_${binary_arch:-386} ;; Linux\ x86_64) download boilr-$version-linux_${binary_arch:-amd64} ;; Linux\ i*86) download boilr-$version-linux_${binary_arch:-386} ;; *) binary_available=0 binary_error=1 ;; esac cat << EOF Completed installation For more information, see: https://github.com/tmrts/tmplt For more information, see: https://github.com/tmrts/boilr EOF
pkg/tmplt/configuration.go→pkg/boilr/configuration.go +8 −8 Original line number Diff line number Diff line package tmplt package boilr import ( "encoding/json" Loading @@ -7,15 +7,15 @@ import ( "os" "path/filepath" "github.com/tmrts/tmplt/pkg/util/exit" "github.com/tmrts/tmplt/pkg/util/osutil" "github.com/tmrts/tmplt/pkg/util/tlog" "github.com/tmrts/boilr/pkg/util/exit" "github.com/tmrts/boilr/pkg/util/osutil" "github.com/tmrts/boilr/pkg/util/tlog" ) const ( AppName = "tmplt" AppName = "boilr" Version = "0.0.1" ConfigDirPath = ".config/tmplt" ConfigDirPath = ".config/boilr" ConfigFileName = "config.json" TemplateDir = "templates" Loading @@ -25,7 +25,7 @@ const ( TemplateMetadataName = "__metadata.json" GithubOwner = "tmrts" GithubRepo = "tmplt" GithubRepo = "boilr" ) var Configuration = struct { Loading Loading @@ -58,7 +58,7 @@ func init() { return } // Read .config/tmplt/config.json if exists // Read .config/boilr/config.json if exists // TODO use defaults if config.json doesn't exist hasConfig, err := osutil.FileExists(Configuration.FilePath) if err != nil { Loading