Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/code-format.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Linting

permissions:
contents: read

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Formatter
run: rustup component add rustfmt

- name: Run Composite Build Action
uses: ./.github/actions/build

- name: Run Format Test
run: cargo fmt --all -- --check
7 changes: 5 additions & 2 deletions .github/workflows/doc-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Document Tests
name: Document

permissions:
contents: read

on:
push:
Expand All @@ -10,7 +13,7 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Integration Tests
name: Integration

permissions:
contents: read

on:
push:
Expand All @@ -10,7 +13,7 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: Unit Tests
name: Unit

permissions:
contents: read

on:
push:
Expand All @@ -10,7 +13,7 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
<img href="https://github.com/matthambrecht/eaql/actions/workflows/unit-tests.yaml" src="https://github.com/matthambrecht/eaql/actions/workflows/unit-tests.yaml/badge.svg"/>
<img href="https://github.com/matthambrecht/eaql/actions/workflows/doc-tests.yaml" src="https://github.com/matthambrecht/eaql/actions/workflows/doc-tests.yaml/badge.svg"/>
<img href="https://github.com/matthambrecht/eaql/actions/workflows/integration-tests.yaml" src="https://github.com/matthambrecht/eaql/actions/workflows/integration-tests.yaml/badge.svg"/>
<img href="https://github.com/matthambrecht/eaql/actions/workflows/code-format.yaml" src="https://github.com/matthambrecht/eaql/actions/workflows/code-format.yaml/badge.svg"/>
<img src="https://github.com/matthambrecht/eaql/actions/workflows/github-code-scanning/codeql/badge.svg" href="https://github.com/matthambrecht/eaql/actions/workflows/github-code-scanning/codeql"/>
</p>

**EAQL (English Augmented Query Language)** is a simplified, English-like query language designed as natural-language alternative to SQL. It's built for learners, educators, and tinkerers.
Expand Down
15 changes: 6 additions & 9 deletions src/bin/repl.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
use eaql::{
transpiler,
validator,
utils,
};
use eaql::{transpiler, utils, validator};

fn main() {
let args: Vec<String> = std::env::args().collect();

utils::help::display_logo();

if args.len() < 2 {
Expand All @@ -17,7 +13,8 @@ fn main() {
match args[args.len() - 1].as_str() {
"transpile" => transpiler::repl_loop(),
"query_test" => validator::repl_loop(),
_ => utils::help::display_help(
Some(format!("Invalid Testing CLI Argument -> {}, see usage!", args[2]).as_str()))
_ => utils::help::display_help(Some(
format!("Invalid Testing CLI Argument -> {}, see usage!", args[2]).as_str(),
)),
}
}
}
Loading