XR for Universal Blue and Fedora Atomic Desktops
vr fedora-atomic linux
at main 22 lines 673 B view raw
1#!/usr/bin/env nu 2# SPDX-License-Identifier: AGPL-3.0-only 3# Copyright (c) 2025 Shiloh Fen <shiloh@shilohfen.com> 4 5use std log 6use ./modcli 7 8const mod_src = path self ./atomic-xr | path expand 9 10def main [ 11 prefix: string = "~/.local" 12 --install-module (-m) 13 --force (-f) # Overwrite existing files 14 --uninstall (-u) # Uninstall 15] { 16 if $uninstall { 17 modcli uninstall "atomic-xr" $prefix --bin-name "axr" --remove-module=$install_module 18 } else { 19 modcli install $mod_src $prefix --force=$force --install-module=$install_module --bin-name "axr" 20 log info "AtomicXR CLI has been installed, use `axr -l` for a list of commands." 21 } 22}