Commit graph

23 commits

Author SHA1 Message Date
kayos
6c48a35180
Feat: conditional permissions behavior (#28)
* Fix: don't need sudo if we're root + other aesthetics

* Heavy refactoring, see PR #28

* Fix: avoid silent fatalities

demo: https://tcp.ac/i/JMSUc.gif

* Fix: Inverse check on `IsRoot`

* D.R.Y: check for permissions error in `common.ErrorCheck`

Reduce cognitive complexity.

* Fix: Issue with copying

* Resolve https://github.com/HikariKnight/quickpassthrough/pull/28#discussion_r1646535918

* Resolve https://github.com/HikariKnight/quickpassthrough/pull/28#discussion_r1646606680 and https://github.com/HikariKnight/quickpassthrough/pull/28#discussion_r1646594105

* Revert "Resolve https://github.com/HikariKnight/quickpassthrough/pull/28#discussion_r1646606680 and https://github.com/HikariKnight/quickpassthrough/pull/28#discussion_r1646594105"

This reverts commit ce15213009.

* Resolve https://github.com/HikariKnight/quickpassthrough/pull/28#discussion_r1646730751
2024-07-27 17:38:39 +02:00
HikariKnight
1002f4d64c chore: add missing on comment for command.Run 2024-06-15 02:17:53 +02:00
HikariKnight
fe170efba3 Make some menu options bold 2023-12-26 19:20:30 +01:00
HikariKnight
82fec3ab58 refactor and start adding actual functionality 2023-12-26 19:20:30 +01:00
HikariKnight
eaf8036330 add OkBack 2023-12-26 19:20:29 +01:00
HikariKnight
b033a787b8 add vbios extration page 2023-12-26 19:20:29 +01:00
HikariKnight
e8bac3c741 add a skip option 2023-12-26 19:20:29 +01:00
HikariKnight
d0d72873f2 Make message more correct 2023-12-26 19:20:29 +01:00
HikariKnight
c1ea5e5163 Start process to away from bubbletea to a more simpler solution for this projects needs 2023-12-26 19:20:29 +01:00
HikariKnight
5ee76f5ece move Run with stderr output to its own command 2023-12-26 19:20:29 +01:00
HikariKnight
167de85fe9 the -k flag can break the elevation prompt when used in go 2023-12-26 19:20:29 +01:00
HikariKnight
935adeb140 Attempt to clear the password and encoded password from memory 2023-12-26 19:20:29 +01:00
HikariKnight
d76f1fedd0 update the elevate command, add missing error text 2023-12-26 19:20:29 +01:00
HikariKnight
300ca653cc implement backup system 2023-12-26 19:20:29 +01:00
HikariKnight
f99a5a5ad7 Write in the ability to elevate to sudo 2023-12-26 19:20:29 +01:00
HikariKnight
3ee1062f71 Add FileExist function 2023-12-26 19:20:29 +01:00
HikariKnight
388ba638bd add cmdline to config and fix fileio append 2023-12-26 19:20:29 +01:00
HikariKnight
36b8e44182 make fileio module to make my life easier 2023-12-26 19:20:29 +01:00
HikariKnight
b8c590218b add uname functionality, kinda 2023-12-26 19:20:28 +01:00
HikariKnight
ef3760879b cleanup of the code and add more data to config 2023-12-26 19:20:28 +01:00
HikariKnight
123d1ca18a Refactor and split tui into smaller files 2023-12-26 19:20:28 +01:00
HikariKnight
62635076c3 start work on go rewrite for stable release 2023-12-26 19:20:28 +01:00
HikariKnight
5da1a88296 initial commit to prepare for rewrite into golang for actual use 2023-12-26 19:20:28 +01:00