Skip to content

Commit

Permalink
Rename to zktree
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezameskin committed Oct 5, 2020
1 parent 96697a4 commit f05e464
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@ jobs:
run: mkdir artifacts

- name: Get the release version from the tag
if: env.ZOOTREE_VERSION == ''
if: env.ZKTREE_VERSION == ''
run: |
echo "::set-env name=ZOOTREE_VERSION::${GITHUB_REF#refs/tags/}"
echo "version is: ${{ env.ZOOTREE_VERSION }}"
echo "::set-env name=ZKTREE_VERSION::${GITHUB_REF#refs/tags/}"
echo "version is: ${{ env.ZKTREE_VERSION }}"
- name: Create GitHub release
id: release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.ZOOTREE_VERSION }}
release_name: ${{ env.ZOOTREE_VERSION }}
tag_name: ${{ env.ZKTREE_VERSION }}
release_name: ${{ env.ZKTREE_VERSION }}

- name: Save release upload URL to artifact
run: echo "${{ steps.release.outputs.upload_url }}" > artifacts/release-upload-url

- name: Save version number to artifact
run: echo "${{ env.ZOOTREE_VERSION }}" > artifacts/release-version
run: echo "${{ env.ZKTREE_VERSION }}" > artifacts/release-version

- name: Upload artifacts
uses: actions/upload-artifact@v1
Expand Down Expand Up @@ -77,9 +77,9 @@ jobs:
- name: Build archive
shell: bash
run: |
staging="zootree-macos-${{ env.RELEASE_VERSION }}"
staging="zktree-macos-${{ env.RELEASE_VERSION }}"
mkdir -p "$staging"
cp target/release/zootree "$staging"
cp target/release/zktree "$staging"
tar czf "$staging.tar.gz" "$staging"
echo "::set-env name=ASSET::$staging.tar.gz"
Expand Down Expand Up @@ -138,9 +138,9 @@ jobs:
- name: Build archive
shell: bash
run: |
staging="zootree-linux-${{ env.RELEASE_VERSION }}"
staging="zktree-linux-${{ env.RELEASE_VERSION }}"
mkdir -p "$staging"
cp target/release/zootree "$staging"
cp target/release/zktree "$staging"
tar czf "$staging.tar.gz" "$staging"
echo "::set-env name=ASSET::$staging.tar.gz"
Expand Down
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "zootree"
name = "zktree"
version = "0.1.0"
authors = ["Alireza Meskin <alireza.meskin@gmail.com>"]
edition = "2018"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# zootree
# zktree
A small tool to display Znodes in Zookeeper in tree structure.

## Usage
```bash
$ zootree --server "localhost:2181"
$ zktree --server "localhost:2181"
```

## Sample output
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ impl Watcher for LoggingWatcher {
}

fn main() {
let matches = App::new("zootree")
let matches = App::new("zktree")
.version("0.0.1")
.about("Display znodes tree of zookeeper")
.arg(
Expand Down

0 comments on commit f05e464

Please sign in to comment.