Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edgedb/edgedb-cli
The EdgeDB CLI
https://github.com/edgedb/edgedb-cli
command-line edgedb repl
Last synced: 3 months ago
JSON representation
The EdgeDB CLI
- Host: GitHub
- URL: https://github.com/edgedb/edgedb-cli
- Owner: edgedb
- License: apache-2.0
- Created: 2020-03-23T15:17:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T21:23:55.000Z (7 months ago)
- Last Synced: 2024-04-13T12:56:44.223Z (7 months ago)
- Topics: command-line, edgedb, repl
- Language: Rust
- Homepage: https://www.edgedb.com/docs/cli/index
- Size: 3.37 MB
- Stars: 154
- Watchers: 14
- Forks: 20
- Open Issues: 131
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
EdgeDB Command-line Tools
=========================This repository contains `edgedb` command-line tool rewritten in rust.
Install
=======Install the latest stable build with:
```
curl --proto '=https' --tlsv1.2 -sSf https://sh.edgedb.com | sh
```Nightly builds can be installed with:
```
curl --proto '=https' --tlsv1.2 -sSf https://sh.edgedb.com | sh -s -- --nightly
```Development
===========Use cargo for building it:
```
cargo build
cargo run -- --admin -d tutorial
cargo test
```Tests
=====There are a few categories of tests in this repo:
- unit tests within `src/`
- run with: `cargo test --bins`,
- no additional requirements,- `tests/func/`
- invokes the cli binary,
- run with: `cargo test --test=func`,
- requires `edgedb-server` binary in PATH,
- will use [test-utils](https://github.com/edgedb/test-utils/) to start the server,- `tests/shared-client-tests/`
- generates tests from [shared-client-testcases](https://github.com/edgedb/shared-client-testcases/),
- invokes the cli binary,
- run with: `cargo test --package=shared-client-tests`,
- will write into `/home/edgedb`,- `tests/portable_*.rs/`
- tests installation of the portable EdgeDB server,
- will download large packages,
- run with: `cargo test --features=portable_tests --test=portable_X`,
- assumes you don't have any portables installed before running it,- `tests/docker_test_wrapper.rs`
- runs other tests in a docker container,
- run with: `cargo test --features=docker_test_wrapper --test=docker_test_wrapper`,
- requires Docker,
- requires that binaries compiled on host machine are runnable in "ubuntu:mantic",- Github Actions & Nightly tests
Code Quality Assurance
======================This project uses rustfmt and clippy to provide a unified code style.
When opening pull requests, it is advised to run the following commands
before doing so:```bash
$ cargo clippy --all-features --workspace --all-targets
$ cargo fmt
```License
=======Licensed under either of
* Apache License, Version 2.0,
(./LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license (./LICENSE-MIT or http://opensource.org/licenses/MIT)at your option.