chore(release): 1.1.0 [skip ci]

# [1.1.0](https://github.com/casbin-rs/casbin-rust-cli/compare/v1.0.0...v1.1.0) (2025-02-02)

### Features

* add some subcommands like enforce_ex() & disable semantic-release-action at forks ([#6](https://github.com/casbin-rs/casbin-rust-cli/issues/6)) ([c48bd06](https://github.com/casbin-rs/casbin-rust-cli/commit/c48bd06a2f74f7fbbf40f2d948f64cfd6b29528b))
3 files changed
tree: 96fc7f254c8c9b0fc270c7ac834689760d8c2e72
  1. .github/
  2. examples/
  3. src/
  4. .gitignore
  5. Cargo.lock
  6. Cargo.toml
  7. CHANGELOG.md
  8. LICENSE
  9. README.md
README.md

casbin-rust-cli

Crates.io Docs CI

casbin-rust-cli is a command-line tool based on Casbin (Rust language), enabling you to use all of Casbin APIs in the shell.

Installation

From crates.io

cargo install --locked casbin-rust-cli

Install Manually

git clone https://github.com/casbin-rs/casbin-rust-cli.git
cd casbin-rust-cli
cargo install --path .

Options

optionsdescriptionmust
-m, --modelThe path of the model file or model texty
-p, --policyThe path of the policy file or policy texty
enforceCheck permissionsn

Get started

  • Check whether Alice has read permission on data1

    ./casbin-rust-cli enforce -m "examples/basic_model.conf" -p "examples/basic_policy.csv" "alice" "data1" "read"
    

    {“allow”:true,“explain”:[]}