-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from cqb13/standardize
Standardize
- Loading branch information
Showing
64 changed files
with
10,876 additions
and
15,480 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/target | ||
.DS_Store | ||
.DS_Store | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "src/tokens/standard_tokens"] | ||
path = src/tokens/standard_tokens | ||
url = https://github.com/TI-Toolkit/tokens/tree/built |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,95 @@ | ||
# TI Tools | ||
|
||
A CLI tool to convert 8xp files to text and back. | ||
TI Tools is a CLI tool designed for converting 8xp files (used by TI-83 and TI-84 calculators) to text files and vice versa. It also supports various other features for working with 8xp files. | ||
|
||
## This project would not be possible without the help of the following: | ||
## Acknowledgments | ||
|
||
This project would not be possible without the help of the following: | ||
|
||
- [TI Toolkit Token Sheet](https://github.com/TI-Toolkit/tokens) | ||
- [TI Basic Developer Wiki](http://tibasicdev.wikidot.com/tokens) | ||
- [TI-83+ Link Protocol Guide v1.1](https://merthsoft.com/linkguide/ti83+/fformat.html) | ||
|
||
## Installation | ||
|
||
### Build from Source | ||
|
||
Clone the repository and build the project using [Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html): | ||
|
||
```sh | ||
git clone https://github.com/cqb13/ti-tools.git | ||
cd ti-tools | ||
cargo build --release | ||
# The binary will be located at target/release/ti-tools | ||
``` | ||
|
||
To add the binary to your PATH, run: | ||
|
||
```sh | ||
cargo install --path . | ||
``` | ||
|
||
### Pre-built Binaries | ||
|
||
Pre-built binaries are available for Windows, macOS, and Linux on the [releases page](https://github.com/cqb13/ti-tools/releases). | ||
|
||
## Usage | ||
|
||
```sh | ||
ti-tools [COMMAND] [OPTIONS] | ||
``` | ||
|
||
## Commands | ||
|
||
``` | ||
help | ||
Prints help information | ||
<COMMAND> A command to help with | ||
version | ||
Prints version information | ||
decode | ||
Converts 8xp to txt | ||
<INPUT> The input path to an 8xp file | ||
-o --output <OUTPUT> The output path to a txt file | ||
-d --display-mode <DISPLAY_MODE> The characters to translate the tokens to [pretty, accessible, ti] | Default: accessible | ||
-m --model <MODEL> The model of calculator (use models command to see the supported models) | Default: latest | ||
-c --content <> Display the content of the input file | ||
-p --preview <> Preview the output file in the terminal | ||
encode | ||
Converts txt to 8xp | ||
<INPUT> The input path to an 8xp file | ||
-o --output <OUTPUT> The output path to a 8xp file | ||
-m --model <MODEL> The model of calculator (use models command to see the supported models) | Default: latest | ||
-c --content <> Display the content of the input file | ||
-p --preview <> Preview the output file in the terminal | ||
rename | ||
Renames the program name in a 8xp file | ||
<INPUT> The input path to an 8xp file | ||
-n --name <NAME> New program number (8 or less uppercase alphabetic characters) | ||
-f --new-file <> Create a new file with the same name as the program | ||
-d --delete-old <> Delete the old file | ||
models | ||
Prints the supported TI calculator models | ||
``` | ||
|
||
## Examples | ||
|
||
### Decode | ||
|
||
```sh | ||
ti-tools decode ./src/tests/programs/TOCCATA.8xp -p -c -o ./TOCCATA.txt | ||
``` | ||
|
||
### Encode | ||
|
||
```sh | ||
ti-tools encode ./TOCCATA.txt -p -c -o ./TOCCATA.8xp | ||
``` | ||
|
||
## Contributing | ||
|
||
Contributions are welcome! Feel free to fork this repository and submit pull requests. | ||
|
||
## License | ||
|
||
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. |
Oops, something went wrong.