Skip to content

Commit

Permalink
[tls] Add Rust binary to do the work of fish scripts
Browse files Browse the repository at this point in the history
- Migrate get-cfssl-binaries.fish to Rust
- Use create_global_singleton! from r3bl_core
- Refactor script helper mod to be more bash-like
- scripting.rs:
  - Extract path, directory, environment, github_api, etc modules in scripting.rs
  - Make the code idiomatic Rust
  - Add tests to each module
- Path and PathBuf
  - Use Path instead of PathBuf where possible
  - Use impl AsRef<Path> to receive arguments for max generalization for calling code
  - Use &Path instead of &PathBuf
- Use TryFrom to implement conversion from OutputFolderLocations enum to PathBuf
- Add OS specific behaviors to scripting.rs
  • Loading branch information
nazmulidris committed Dec 6, 2024
1 parent ccd0e8b commit 39f8730
Show file tree
Hide file tree
Showing 8 changed files with 1,820 additions and 107 deletions.
3 changes: 3 additions & 0 deletions tls/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"cSpell.words": [
"Bufs",
"CFSSL",
"cfssljson",
"gencert",
Expand All @@ -11,6 +12,8 @@
"pushd",
"rcat",
"realpath",
"replacen",
"reqwest",
"rustls",
"webpki"
]
Expand Down
Loading

0 comments on commit 39f8730

Please sign in to comment.