Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(rename phar) continuousphp.phar #12

Merged
merged 1 commit into from
Jun 29, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ CLI for the ContinuousPHP platform. Manage projects and build easily from your f

## Installation as Phar ( Recommended )

Download the latest version of continuousphpcli as a Phar:
Download the latest version of continuousphp cli as a Phar:

```sh
$ curl -LSs https://continuousphp.github.io/cli/phar-installer.php | php
```

The command will check your PHP settings, warn you of any issues, and then download it to the current directory.
From there, you may place it anywhere you want to make it easier to access (such as `/usr/local/bin`) and chmod it to 755.
You can even rename it to just `continuousphpcli` to avoid having to type the .phar extension every time.
You can even rename it to just `continuousphp` to avoid having to type the .phar extension every time.

## Documentation

Expand Down
8 changes: 4 additions & 4 deletions cphp-gh-release-asset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ upload_url=`curl -sS -H "Authorization: token ${GITHUB_TOKEN}" https://api.githu
echo "Attach phar to github release: $PHAR_NAME"
echo "Upload to $upload_url"

curl -sS -H "Authorization: token ${GITHUB_TOKEN}" -H "Content-Type: application/octet-stream" --upload-file $PHAR_NAME "$upload_url?name=continuousphpcli.phar"
curl -sS -H "Authorization: token ${GITHUB_TOKEN}" -H "Content-Type: application/octet-stream" --upload-file "$PHAR_NAME.sig" "$upload_url?name=continuousphpcli.sig"
curl -sS -H "Authorization: token ${GITHUB_TOKEN}" -H "Content-Type: application/octet-stream" --upload-file $PHAR_NAME "$upload_url?name=continuousphp.phar"
curl -sS -H "Authorization: token ${GITHUB_TOKEN}" -H "Content-Type: application/octet-stream" --upload-file "$PHAR_NAME.sig" "$upload_url?name=continuousphp.sig"

rm -rf .git
mkdocs build -d doc_dist
Expand All @@ -34,7 +34,7 @@ git checkout gh-pages
rm -rf doc
mv ../doc_dist doc

php -r '$x = json_decode(file_get_contents("manifest.json"), true); $x["'$TAG'"] = ["name"=>"continuousphpcli.phar","sha1"=>sha1_file("../'$PHAR_NAME'"),"url"=>"https://github.com/continuousphp/cli/releases/download/'$TAG'/continuousphpcli.phar","version"=>substr("'$TAG'",1)]; file_put_contents("manifest.json", json_encode($x)); print_r($x);'
php -r '$x = json_decode(file_get_contents("manifest.json"), true); $x["'$TAG'"] = ["name"=>"continuousphp.phar","sha1"=>sha1_file("../'$PHAR_NAME'"),"url"=>"https://github.com/continuousphp/cli/releases/download/'$TAG'/continuousphp.phar","version"=>substr("'$TAG'",1)]; file_put_contents("manifest.json", json_encode($x)); print_r($x);'

git config user.email "info@continuousphp.com"
git config user.name "${CPHP_BUILT_BY}"
Expand All @@ -43,4 +43,4 @@ git add -A doc
git add manifest.json

git commit -m "Update doc to tag $TAG"
git push origin gh-pages
git push origin gh-pages
12 changes: 6 additions & 6 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ The ContinuousPHP CLI is a command line interface for the ContinuousPHP Platform
## Installation

We recommend using the php installer script to install the latest version
of continuousphpcli PHAR.
of continuousphp PHAR.

$ curl -LSs https://continuousphp.github.io/cli/phar-installer.php | php
# Move the phar in your user bin directory
$ mv continuousphpcli.phar /usr/local/bin/continuousphpcli
$ mv continuousphp.phar /usr/local/bin/continuousphp

The command will check your PHP settings, warn you of any issues, and then download it to the current directory.
From there, you may place it anywhere you want to make it easier to access (such as `/usr/local/bin`) and chmod it to 755.
You can even rename it to just `continuousphpcli` to avoid having to type the .phar extension every time.
You can even rename it to just `continuousphp` to avoid having to type the .phar extension every time.

## Configuration

Expand All @@ -29,10 +29,10 @@ on your credentials page at https://app.continuousphp.com/credentials

Configure a new profile in interactive mode with this command:

$ continuousphpcli configure
$ continuousphp configure
> Profile name [default]: myProfileName
> User Token: XXXXXXXXXX
< Profile myUserAccount saved in /home/user/.continuousphp/credentials

If you choose `default` as the profile name, the continuousphpcli will automatically use this credential.
Otherwise, you must specify the option `--profile myProfileName` on each command.
If you choose `default` as the profile name, the continuousphp command will automatically use this credential.
Otherwise, you must specify the option `--profile myProfileName` on each command.