mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-16 05:49:59 -05:00
feat: add more info at end of install
Also add newlines between sections
This commit is contained in:
@@ -50,7 +50,7 @@ class Command:
|
|||||||
local_packages=local_packages,
|
local_packages=local_packages,
|
||||||
).save()
|
).save()
|
||||||
|
|
||||||
info("Done!")
|
self.print_done()
|
||||||
|
|
||||||
def print_greeting(self) -> None:
|
def print_greeting(self) -> None:
|
||||||
print(
|
print(
|
||||||
@@ -75,6 +75,7 @@ class Command:
|
|||||||
info(" - Install config files")
|
info(" - Install config files")
|
||||||
info("The installer does NOT set up hardware/system level configs (e.g. drivers). Please do this yourself.")
|
info("The installer does NOT set up hardware/system level configs (e.g. drivers). Please do this yourself.")
|
||||||
pause()
|
pause()
|
||||||
|
print()
|
||||||
|
|
||||||
def create_backup(self) -> None:
|
def create_backup(self) -> None:
|
||||||
if config_dir.exists():
|
if config_dir.exists():
|
||||||
@@ -94,6 +95,7 @@ class Command:
|
|||||||
info(f"Created backup at {config_backup_dir}")
|
info(f"Created backup at {config_backup_dir}")
|
||||||
|
|
||||||
def fetch_manifest(self) -> tuple[DotsSource, str, Manifest]:
|
def fetch_manifest(self) -> tuple[DotsSource, str, Manifest]:
|
||||||
|
print()
|
||||||
log("Fetching dots repo...")
|
log("Fetching dots repo...")
|
||||||
source = DotsSource()
|
source = DotsSource()
|
||||||
try:
|
try:
|
||||||
@@ -161,6 +163,7 @@ class Command:
|
|||||||
manifest.resolve_components(enable=list(set(enabled)))
|
manifest.resolve_components(enable=list(set(enabled)))
|
||||||
|
|
||||||
def deploy_configs(self, source: DotsSource, manifest: Manifest) -> None:
|
def deploy_configs(self, source: DotsSource, manifest: Manifest) -> None:
|
||||||
|
print()
|
||||||
log("Installing configs...")
|
log("Installing configs...")
|
||||||
deployer = Deployer()
|
deployer = Deployer()
|
||||||
for entry in manifest.enabled_entries():
|
for entry in manifest.enabled_entries():
|
||||||
@@ -183,12 +186,14 @@ class Command:
|
|||||||
|
|
||||||
packages = manifest.enabled_packages()
|
packages = manifest.enabled_packages()
|
||||||
if packages:
|
if packages:
|
||||||
|
print()
|
||||||
log("Installing packages...")
|
log("Installing packages...")
|
||||||
installer.install(packages)
|
installer.install(packages)
|
||||||
|
|
||||||
local_packages = {}
|
local_packages = {}
|
||||||
local_dirs = manifest.enabled_local_packages()
|
local_dirs = manifest.enabled_local_packages()
|
||||||
if local_dirs:
|
if local_dirs:
|
||||||
|
print()
|
||||||
log("Building local packages...")
|
log("Building local packages...")
|
||||||
for path in local_dirs:
|
for path in local_dirs:
|
||||||
directory = source.working_path(path)
|
directory = source.working_path(path)
|
||||||
@@ -206,6 +211,7 @@ class Command:
|
|||||||
if not hooks:
|
if not hooks:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
print()
|
||||||
log("Running post-install hooks...")
|
log("Running post-install hooks...")
|
||||||
env = {**os.environ, "CAELESTIA_DOTS": str(dots_dir)}
|
env = {**os.environ, "CAELESTIA_DOTS": str(dots_dir)}
|
||||||
for hook in hooks:
|
for hook in hooks:
|
||||||
@@ -213,3 +219,13 @@ class Command:
|
|||||||
result = subprocess.run(hook, shell=True, env=env)
|
result = subprocess.run(hook, shell=True, env=env)
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
warn(f"hook exited with {result.returncode}")
|
warn(f"hook exited with {result.returncode}")
|
||||||
|
|
||||||
|
def print_done(self) -> None:
|
||||||
|
print()
|
||||||
|
info("All done! Caelestia has been installed.")
|
||||||
|
info("A few things to finish up:")
|
||||||
|
info(" - A reboot is recommended for all changes take effect")
|
||||||
|
info(" - Edit `~/.config/caelestia/hypr-vars.conf` to set default apps, keybinds and much more")
|
||||||
|
info(" - Edit `~/.config/caelestia/hypr-user.conf` to set your monitor layout and other Hyprland configs")
|
||||||
|
info(" - Run `caelestia update` later to pull in the latest changes")
|
||||||
|
info("Enjoy! For support (or to just hang out), join our Discord server: https://discord.gg/BGDCFCmMBk")
|
||||||
|
|||||||
Reference in New Issue
Block a user