Skip to content

Commit

Permalink
Merge pull request #60 from sidis405/master
Browse files Browse the repository at this point in the history
Added valet secure flag
  • Loading branch information
sbine authored Nov 9, 2018
2 parents f2b4f4e + c3d3e79 commit 8a94610
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lambo
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ showhelp()
echo "${green} -n, --node${reset} Runs '${green}yarn${reset}' if installed, otherwise runs '${green}npm install${reset}' after creating the project"
echo "${green} -b, --browser \"browser path\"${reset} Opens site in specified browser"
echo "${green} -l, --link${reset} Creates a Valet link to the project directory"
echo "${green} -s, --secure${reset} Generate and use https with Valet"
quit
}

Expand Down Expand Up @@ -249,6 +250,9 @@ while [[ $# -gt 0 ]]; do
-l|--link)
LINK=true
;;
-s|--secure)
SECURE=true
;;
*)
;;
esac
Expand Down Expand Up @@ -341,6 +345,10 @@ if [[ "$LINK" = true ]]; then
valet link "$PROJECTNAME"
fi

if [[ "$SECURE" = true ]]; then
valet secure "$PROJECTNAME"
fi

if [[ "$(uname)" == "Darwin" ]]; then
if [[ "$BROWSER" != "" ]]; then
open -a "$BROWSER" "$PROJECTURL"
Expand Down

0 comments on commit 8a94610

Please sign in to comment.