Skip to content

Commit

Permalink
feat: 0.0.2 - Parse stego.lock values to AmbosoEnv (#24)
Browse files Browse the repository at this point in the history
- Add AmbosoEnv struct definition
- Add basic logic to parse stego.lock as `toml`
- Add is_git_repo_clean() to check if working directory status when in
git mode
- Set args.git to true when not doing linter or gen_c_header and no
other mode was specified
- Return early on calls with -W
- Bump version to 0.0.2
  • Loading branch information
jgabaut authored Nov 28, 2023
2 parents 0971f20 + b4a7b1b commit c7c0399
Show file tree
Hide file tree
Showing 5 changed files with 437 additions and 30 deletions.
179 changes: 178 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "invil"
description = "A port of amboso to Rust"
version = "0.0.1"
version = "0.0.2"
edition = "2021"
license = "GPL-3.0-only"
homepage = "https://github.com/jgabaut/invil"
Expand All @@ -19,6 +19,7 @@ exclude = [

[dependencies]
clap = { version = "4.4.10", features = ["derive"] }
git2 = "0.18.1"
log = "0.4.20"
simplelog = "0.12.1"
toml = "0.8.8"
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@

## What is this thing? <a name = "witt"></a>

This is a Rust implementation of [amboso](https://github.com/jgabaut/amboso), a basic build tool wrapping make and upporting git tags.
This is a Rust implementation of [amboso](https://github.com/jgabaut/amboso), a basic build tool wrapping make and supporting git tags.

It's in a early stage, and there isn't any functionality yet.

## Supported amboso features <a name = "supported_amboso"></a>

- Basic arguments parsing that complies with the bash implementation
- Atm the `verbose` flag expects a `u8` argument, while bash parses multiple flag occurrences.
- Same default for amboso directory (`./bin`).

## See how it behaves <a name = "try_anvil"></a>
Expand Down
18 changes: 17 additions & 1 deletion bin/stego.lock
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
TODO: parse stego.lock
[build]

source = "main.rs"
bin = "invil"
makevers = "2.0.0"
automakevers = "3.0.0"
tests = "kazoj"

[tests]

testsdir = "bone"
errortestsdir = "kulpo"

[versions]

"-0.0.1" = "First release"
"0.0.2" = "Draft"
Loading

0 comments on commit c7c0399

Please sign in to comment.