Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/kazajhodo/launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
kazajhodo committed May 30, 2019
2 parents 671ac0b + f90614b commit e76dfd5
Showing 1 changed file with 30 additions and 5 deletions.
35 changes: 30 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,25 @@ Written on macOS Sierra, 10.12.6.

Feel free to use/modify. Developed for personal use.

# Paramaters
May pass php version number to skip prompting.
Ex. 'launcher 7.2'

# Options
May pass '-y' to skip prompt if you would like to open a project.
Ex. 'launcher 7.2 -y'

May pass '--help' to view help details.

# Functionality walkthrough
Detects if Homebrew is installed, if not exits.

Adds symlinks for osx php version 7.3.
This allows using launcher to swap to osx php version.

Outputs a variety of hopefully amusing comments when initiated. Like, ‘Using the force’ and my favorite, 'rm -rf / #This is what you get for blindly trusting code.'.

Requests php version you would like to switch to with Homebrew.
Requests php version you would like to switch to, if not passed as an option.

Detects current php version, stops, unlinks.
Removes php reference in .zshrc.
Expand All @@ -23,9 +36,21 @@ Links requested php version, starts.
Automatically outputs current system php version after changes with ‘ps aux | grep php’.
Automatically outputs terminal php version with ‘php -v’.

Detects if sublime is installed. If so requests project to load.
Assumes projects directory is ‘Projects’, this can be updated in script with a simple variable change.
# Dev controlled functionality
Starting at the '# Project loaders.' comment line there are additional functionality options.

Define your local projects location in the 'projects' variable.
Run a 'which [ide name]' to detect your ide installation path. Use this to add your own ide detection block.

There is an example block, starts with the comment '#Example ide detection block'.

Detect if ide installed. If so requests project to load if '-y' not passed as an option.

# Future functionality
TODO:
Add github functionality.
Start a hotfix/feature/branch after project load.

TODO:
If github detected, start github hotfix/feature branch.
If tower detected, open project in Tower.
Check if tower is used.
If so, open repository in tower.

0 comments on commit e76dfd5

Please sign in to comment.