Commit graph

9 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
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
f99a5a5ad7 Write in the ability to elevate to sudo 2023-12-26 19:20:29 +01:00
HikariKnight
ef3760879b cleanup of the code and add more data to config 2023-12-26 19:20:28 +01:00