0.0
No commit activity in last 3 years
No release in over 3 years
Command line tool for Codelation tasks
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Codelation CLI

Usage


Codelation CLI V2.1.6

	Examples:
		codelation install all          Installs all packages
		codelation install all -f       Installs all packages without prompting
		codelation install atom         Installs atom

	Commands:
		help/h                           Shows this message
		version/-v                       Shows the version of this tool
		new/n cmd                        Creates a new project.  cmd can be one of the folling

		      rails [name]   - new rails project with the optional name

		track/t [name]                   Tracks the current directory for Atom Project Manager and cmd line quick actions
		list/l                           Lists all tracked projects
		untrack/u [name]                 Untracks the current directory or the given name
		open/o name                      Opens a terminal to the project by tracked alias name
		open with atom/oa name           Opens a terminal and atom to the project by tracked alias name
		clone name                     Clones a project by name from Codelations Organization or by the url and tracks
		install/i cmd                    Used to install assets. 'cmd' can be any one of the following

		      all            - Everything is installed/Same as empty
		      atom           - Atom is installed with prompts for packages and config
		      atom-packages  - Atom packages are installed
		      atom-config    - Atom config is installed
		      postgres       - Postgres is installed
		      brew           - Brew packages are installed
		      gems           - Gems are installed
		      ruby           - Ruby is installed
		      config         - The config dot files are installed

		--force/-f                       Does not prompt the user (for silent installs)


In this project

This has 3 main projects in it. cli is the project that the command line options are parsed. It also is the where the executable is built. command_tools provides simple APIs for doing things like unzipping a file and downloading a file. development_setup is the project where all the development installation tasks exist.

To Build

1. Run Build Tool

Simply Run ./build.sh. This will spit out a compressed tar file and include the checksum in the output of that command.

2. Create the release on GitHub and attach the tar file

https://github.com/codelation/codelation-cli/releases

3. Update the Formula with the new SHA, URL, and version

The SHA and Version are all included in the output of the command. Add the data here: https://github.com/codelation/homebrew-tools/blob/master/codelation-cli.rb

Manually Build (Without the build tool)

Everything below is run from the apps/cli directory

1. Install Dependencies

mix escript.build

2. Rename the Executable

mv cli codelation

3. Create the Tar file

tar -czf codelation-2.0.2.tar.gz codelation

4. Create the release on GitHub and attach the tar file

https://github.com/codelation/codelation-cli/releases

5. Generate the SHA-256

shasum -a 256 codelation-2.0.2.tar.gz

6. Update the Formula with the new SHA, URL, and version

https://github.com/codelation/homebrew-tools/blob/master/codelation-cli.rb