GithubHelp home page GithubHelp logo

kabie / edgedb-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from edgedb/edgedb-cli

0.0 0.0 0.0 3.71 MB

The EdgeDB CLI

Home Page: https://www.edgedb.com/docs/cli/index

License: Apache License 2.0

Shell 1.08% Rust 98.43% PowerShell 0.10% Nix 0.11% EdgeQL 0.28%

edgedb-cli's Introduction

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,
  • tests/shared-client-tests/

    • generates tests from 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

License

Licensed under either of

at your option.

edgedb-cli's People

Contributors

tailhook avatar elprans avatar fantix avatar 1st1 avatar quinchs avatar msullivan avatar dhghomon avatar ambv avatar aljazerzen avatar nsidnev avatar raddevon avatar jaclarke avatar fmoor avatar scotttrinh avatar vpetrovykh avatar colinhacks avatar diksipav avatar mrfoxpro avatar mirrorrim avatar codesinchaos avatar fogapod avatar robertoprevato avatar syzuna avatar zackelan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.