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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ Cargo.lock
-*
rustc-ice-*.txt
.roo
.roomodes
50 changes: 0 additions & 50 deletions module/core/former/task.md

This file was deleted.

42 changes: 0 additions & 42 deletions module/core/former/task_clippy_lints.md

This file was deleted.

40 changes: 0 additions & 40 deletions module/core/former/task_run_tests.md

This file was deleted.

28 changes: 28 additions & 0 deletions module/move/unilang/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ enabled = []
on_unknown_suggest = [ "dep:textdistance" ]

[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
url = "2.5.0"
chrono = { version = "0.4.38", features = ["serde"] }
regex = "1.10.4"

## internal
error_tools = { workspace = true, features = [ "enabled", "error_typed", "error_untyped" ] }
Expand All @@ -44,8 +50,30 @@ log = "0.4"
#closure = "0.3"
textdistance = { version = "1.0", optional = true } # fuzzy commands search
indexmap = "2.2.6"
thiserror = "1.0"

[[bin]]
name = "unilang_cli"
path = "src/bin/unilang_cli.rs"

[[test]]
name = "command_loader_test"
path = "tests/inc/phase2/command_loader_test.rs"
[[test]]
name = "cli_integration_test"
path = "tests/inc/phase2/cli_integration_test.rs"

[[test]]
name = "help_generation_test"
path = "tests/inc/phase2/help_generation_test.rs"





[dev-dependencies]
test_tools = { workspace = true }
assert_cmd = "2.0"
predicates = "2.1"
assert_fs = "1.0"
criterion = "0.5"
4 changes: 4 additions & 0 deletions module/move/unilang/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Changelog
### 2025-06-28 - Increment 6: Implement CLI Argument Parsing and Execution
* **Description:** Integrated the `unilang` core into a basic CLI application (`src/bin/unilang_cli.rs`). Implemented a `main` function to initialize `CommandRegistry`, register sample commands, parse command-line arguments, and use `Lexer`, `Parser`, `SemanticAnalyzer`, and `Interpreter` for execution. Handled errors by printing to `stderr` and exiting with a non-zero status code. Corrected `CommandDefinition` and `ArgumentDefinition` `former` usage. Implemented `as_integer` and `as_path` helper methods on `Value` in `src/types.rs`. Updated `CommandRoutine` signatures and return types in `src/bin/unilang_cli.rs` to align with `Result<OutputData, ErrorData>`. Corrected `Parser`, `SemanticAnalyzer`, and `Interpreter` instantiation and usage. Updated `cli_integration_test.rs` to match new `stderr` output format. Removed unused `std::path::PathBuf` import. Addressed Clippy lints (`unnecessary_wraps`, `needless_pass_by_value`, `uninlined_format_args`).
* **Verification:** All tests passed, including `cli_integration_test.rs`, and `cargo clippy -p unilang -- -D warnings` passed.
41 changes: 0 additions & 41 deletions module/move/unilang/plan.md

This file was deleted.

Loading