From 0cc3b3426c2085af1a52d6f1736c4d4a62f40696 Mon Sep 17 00:00:00 2001 From: cqb13 Date: Tue, 30 Jul 2024 09:28:54 -0400 Subject: [PATCH] 0.1.8 --- .github/workflows/publish.yml | 14 +++++++------- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 10 ++++++++++ wiki/Home.md | 10 ++++++++++ 5 files changed, 29 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d39c5f5..1dc3230 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -69,28 +69,28 @@ jobs: run: | choco install zip cd target/${{ matrix.target }}/release - zip ti-tools-0.1.7-${{ matrix.target }}.zip ti-tools.exe + zip ti-tools-0.1.8-${{ matrix.target }}.zip ti-tools.exe cd ../../.. - name: Create tar.gz file on macOS if: ${{ matrix.os == 'macos-latest' }} run: | chmod +x target/${{ matrix.target }}/release/ti-tools - tar -zcf target/${{ matrix.target }}/release/ti-tools-0.1.7-${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release ti-tools + tar -zcf target/${{ matrix.target }}/release/ti-tools-0.1.8-${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release ti-tools chmod +x target/${{ matrix.target2 }}/release/ti-tools - tar -zcf target/${{ matrix.target2 }}/release/ti-tools-0.1.7-${{ matrix.target2 }}.tar.gz -C target/${{ matrix.target2 }}/release ti-tools + tar -zcf target/${{ matrix.target2 }}/release/ti-tools-0.1.8-${{ matrix.target2 }}.tar.gz -C target/${{ matrix.target2 }}/release ti-tools - name: Create tar.gz file on Linux if: ${{ matrix.os == 'ubuntu-latest' }} run: | chmod +x target/${{ matrix.target }}/release/ti-tools - tar -zcf target/${{ matrix.target }}/release/ti-tools-0.1.7-${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release ti-tools + tar -zcf target/${{ matrix.target }}/release/ti-tools-0.1.8-${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release ti-tools - name: Upload release and assets to GitHub uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - tag: "release-0.1.7-${{ github.run_number }}" - release_name: ti-tools 0.1.7 + tag: "release-0.1.8-${{ github.run_number }}" + release_name: ti-tools 0.1.8 file_glob: true - file: target/*/release/ti-tools-0.1.7-*.{zip,tar.gz} + file: target/*/release/ti-tools-0.1.8-*.{zip,tar.gz} diff --git a/Cargo.lock b/Cargo.lock index 46ef26b..b212aea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -76,7 +76,7 @@ dependencies = [ [[package]] name = "ti-tools" -version = "0.1.7" +version = "0.1.8" dependencies = [ "serde", "serde_json", diff --git a/Cargo.toml b/Cargo.toml index ed80486..209d20c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ti-tools" -version = "0.1.7" +version = "0.1.8" edition = "2021" authors = ["cqb13 "] license = "MIT" diff --git a/README.md b/README.md index 9232141..02cd39b 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ Pre-built binaries are available for Windows, macOS, and Linux on the [releases -d --display-mode The characters to translate the tokens to [pretty, accessible, ti] | Default: accessible -c --content Display the content of the input file -p --preview Display the decoded output + -m --mass Changes input required from file to directory for mass file decoding encode - Converts txt to 8xp input (required) The input path to an txt file @@ -60,6 +61,7 @@ Pre-built binaries are available for Windows, macOS, and Linux on the [releases -e --encode-mode The mode used to parse tokens [min, max, smart] | Default: smart -c --content Display the content of the input file -p --preview Display the decoded output + -m --mass Changes input required from file to directory for mass file encoding rename - Renames the program name in a 8xp/82p/83p file input (required) The input path to an 8xp/82p/83p file @@ -107,12 +109,20 @@ Pre-built binaries are available for Windows, macOS, and Linux on the [releases ti-tools decode ./src/tests/programs/TOCCATA.8xp -p -c -o ./TOCCATA.txt ``` +```sh +ti-tools decode ./src/tests/programs -o ./programs --mass +``` + ### Encode ```sh ti-tools encode ./TOCCATA.txt -p -c -o ./TOCCATA.8xp ``` +```sh +ti-tools encode ./src/tests/programs -o ./programs --mass +``` + ## Contributing Contributions are welcome! Feel free to fork this repository and submit pull requests. diff --git a/wiki/Home.md b/wiki/Home.md index df6661d..664603d 100644 --- a/wiki/Home.md +++ b/wiki/Home.md @@ -51,6 +51,7 @@ Pre-built binaries are available for Windows, macOS, and Linux on the [releases -d --display-mode The characters to translate the tokens to [pretty, accessible, ti] | Default: accessible -c --content Display the content of the input file -p --preview Display the decoded output + -m --mass Changes input required from file to directory for mass file decoding encode - Converts txt to 8xp input (required) The input path to an txt file @@ -58,6 +59,7 @@ Pre-built binaries are available for Windows, macOS, and Linux on the [releases -e --encode-mode The mode used to parse tokens [min, max, smart] | Default: smart -c --content Display the content of the input file -p --preview Display the decoded output + -m --mass Changes input required from file to directory for mass file encoding rename - Renames the program name in a 8xp/82p/83p file input (required) The input path to an 8xp/82p/83p file @@ -105,12 +107,20 @@ Pre-built binaries are available for Windows, macOS, and Linux on the [releases ti-tools decode ./src/tests/programs/TOCCATA.8xp -p -c -o ./TOCCATA.txt ``` +```sh +ti-tools decode ./src/tests/programs -o ./programs --mass +``` + ### Encode ```sh ti-tools encode ./TOCCATA.txt -p -c -o ./TOCCATA.8xp ``` +```sh +ti-tools encode ./src/tests/programs -o ./programs --mass +``` + ## Troubleshooting ### Mismatch between decoded and encoded programs