mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-07-26 23:24:17 +02:00
Add donate option to auto-cpufreq menu
This commit is contained in:
parent
ec50930a6e
commit
9ff2fa439e
@ -24,7 +24,8 @@ from auto_cpufreq.core import *
|
|||||||
@click.option("--monitor", is_flag=True, help="Monitor and see suggestions for CPU optimizations")
|
@click.option("--monitor", is_flag=True, help="Monitor and see suggestions for CPU optimizations")
|
||||||
@click.option("--stats", is_flag=True, help="View live stats of CPU optimizations made by daemon")
|
@click.option("--stats", is_flag=True, help="View live stats of CPU optimizations made by daemon")
|
||||||
@click.option("--version", is_flag=True, help="Show currently installed version")
|
@click.option("--version", is_flag=True, help="Show currently installed version")
|
||||||
def main(config, daemon, debug, install, live, log, monitor, stats, version):
|
@click.option("--donate", is_flag=True, help="Support the project")
|
||||||
|
def main(config, daemon, debug, install, live, log, monitor, stats, version, donate):
|
||||||
if len(sys.argv) == 1:
|
if len(sys.argv) == 1:
|
||||||
print("\n" + "-" * 32 + " auto-cpufreq " + "-" * 33 + "\n")
|
print("\n" + "-" * 32 + " auto-cpufreq " + "-" * 33 + "\n")
|
||||||
print("Automatic CPU speed & power optimizer for Linux")
|
print("Automatic CPU speed & power optimizer for Linux")
|
||||||
@ -119,6 +120,12 @@ def main(config, daemon, debug, install, live, log, monitor, stats, version):
|
|||||||
distro_info()
|
distro_info()
|
||||||
app_version()
|
app_version()
|
||||||
footer()
|
footer()
|
||||||
|
elif donate:
|
||||||
|
footer()
|
||||||
|
print("If auto-cpufreq helped you out and you find it useful ...\n")
|
||||||
|
print("Show your appreciation by donating!")
|
||||||
|
print("https://github.com/AdnanHodzic/auto-cpufreq/#donate")
|
||||||
|
footer()
|
||||||
elif install:
|
elif install:
|
||||||
if os.getenv('PKG_MARKER') == "SNAP":
|
if os.getenv('PKG_MARKER') == "SNAP":
|
||||||
root_check()
|
root_check()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user