Skip to content

Commit 9396bd6

Browse files
authored
fix(rename phar) continuousphp.phar (#12)
1 parent a1f0bec commit 9396bd6

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ CLI for the ContinuousPHP platform. Manage projects and build easily from your f
1616

1717
## Installation as Phar ( Recommended )
1818

19-
Download the latest version of continuousphpcli as a Phar:
19+
Download the latest version of continuousphp cli as a Phar:
2020

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

2525
The command will check your PHP settings, warn you of any issues, and then download it to the current directory.
2626
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.
27-
You can even rename it to just `continuousphpcli` to avoid having to type the .phar extension every time.
27+
You can even rename it to just `continuousphp` to avoid having to type the .phar extension every time.
2828

2929
## Documentation
3030

cphp-gh-release-asset.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ upload_url=`curl -sS -H "Authorization: token ${GITHUB_TOKEN}" https://api.githu
2222
echo "Attach phar to github release: $PHAR_NAME"
2323
echo "Upload to $upload_url"
2424

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

2828
rm -rf .git
2929
mkdocs build -d doc_dist
@@ -34,7 +34,7 @@ git checkout gh-pages
3434
rm -rf doc
3535
mv ../doc_dist doc
3636

37-
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);'
37+
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);'
3838

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

4545
git commit -m "Update doc to tag $TAG"
46-
git push origin gh-pages
46+
git push origin gh-pages

docs/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ The ContinuousPHP CLI is a command line interface for the ContinuousPHP Platform
77
## Installation
88

99
We recommend using the php installer script to install the latest version
10-
of continuousphpcli PHAR.
10+
of continuousphp PHAR.
1111

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

1616
The command will check your PHP settings, warn you of any issues, and then download it to the current directory.
1717
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.
18-
You can even rename it to just `continuousphpcli` to avoid having to type the .phar extension every time.
18+
You can even rename it to just `continuousphp` to avoid having to type the .phar extension every time.
1919

2020
## Configuration
2121

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

3030
Configure a new profile in interactive mode with this command:
3131

32-
$ continuousphpcli configure
32+
$ continuousphp configure
3333
> Profile name [default]: myProfileName
3434
> User Token: XXXXXXXXXX
3535
< Profile myUserAccount saved in /home/user/.continuousphp/credentials
3636

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

0 commit comments

Comments
 (0)