Skip to content

refactor!(global): python -> rust#2

Draft
punctuations wants to merge 21 commits intomainfrom
rewrite
Draft

refactor!(global): python -> rust#2
punctuations wants to merge 21 commits intomainfrom
rewrite

Conversation

@punctuations
Copy link
Owner

@punctuations punctuations commented Oct 5, 2022

Refactor details

Rewrite of the cli from python to rust to improve speed.

TODO:

  • issue command
  • init command
  • install command
  • build command
  • remove command
  • add help command (?)
  • dev command
  • update Blame.rs with cargo (i.e. read from cargo file and get version name, etc.)
  • theatre command
  • add homebrew & yum compat
  • check for updates (store in a versions.txt file to compare version when running update command to decide whether should update or not)
  • add debug prints
  • better error detection from handle function (i.e. return Err() instead of always Ok() )
  • Change github workflow for cargo & rust [thanks to @gedeondoescode]
  • Update README, lol

FIXES (platform compatibility):

  • Windows --> Permissions imported from std::os::unix, find windows supported method

UPDATES:

  • Update whenever the add/theatre/theater command is ran (WILL PROMPT USER IF THEY WISH TO UPDATE KERNELS), check the versions.txt file stored in ~/.kernels (also add to blacklist of remove command), in the version.txt three data points will be stored: kernel name, checksum (sha256), and time downloaded. When the command is ran will check the date of all installed kernels, if date is >30d then run update checker (can also force an update of a kernel through separate update command), updating process will just redownload the file (only from github/supported pkg manager)
  • store and check dates as reminders
  • run update checker on theatre and add command use (at very end as a separate function called check_updates)
  • prevent versions.txt being deleted via remove cmd

SPEED IMPROVEMENTS:

  • (dev) only move over changed file
  • (theatre/add) check if file exists before download (non-url only)

Changes:

  • Change 1

@punctuations punctuations self-assigned this Oct 5, 2022
@punctuations punctuations mentioned this pull request Oct 5, 2022
@punctuations punctuations added the enhancement New feature or request label Nov 3, 2022
@punctuations
Copy link
Owner Author

oops didn't mean to rebase merge there

@gedeondoescode
Copy link

gedeondoescode commented Nov 20, 2022

You should try to go for a more open Linux based package repository such as AUR rather than Yum.

@punctuations
Copy link
Owner Author

yea, yum was just used as i didn't really know any, ill look into aur though!

@punctuations punctuations added the documentation Improvements or additions to documentation label Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants