#!/usr/bin/env nu # SPDX-License-Identifier: AGPL-3.0-only # Copyright (c) 2025 Shiloh Fen use std log use ./modcli const mod_src = path self ./atomic-xr | path expand def main [ prefix: string = "~/.local" --install-module (-m) --force (-f) # Overwrite existing files --uninstall (-u) # Uninstall ] { if $uninstall { modcli uninstall "atomic-xr" $prefix --bin-name "axr" --remove-module=$install_module } else { modcli install $mod_src $prefix --force=$force --install-module=$install_module --bin-name "axr" log info "AtomicXR CLI has been installed, use `axr -l` for a list of commands." } }