···11+# SPDX-License-Identifier: AGPL-3.0-only
22+# Copyright (c) 2025 Shiloh Fen <shiloh@shilohfen.com>
33+44+use std log
55+use envision.nu
66+77+# Migrate from version 1.x.x to 2.x.x
88+export def "v1" [] {
99+ log info "Starting migration: 1.x.x -> 2.x.x"
1010+1111+ log info "Updating Envision config"
1212+ do {
1313+ const envision_config_path = "~/.config/envision/envision.json" | path expand
1414+1515+ let envision_config = try {open $envision_config_path} catch {
1616+ log info "Envision config not found, no config migration nessesary"
1717+ return
1818+ }
1919+ let plugins = $envision_config.plugins
2020+ | reject -o ...("cc.dwagon.atomic-xr.{wlx-overlay-s,motoc,oscavmgr.project-babble,oscavmgr.wivrn}" | str expand)
2121+2222+ $envision_config
2323+ | merge {plugins: $plugins}
2424+ | save -f $envision_config_path
2525+ log info "Envision plugins unregistered successfully"
2626+ }
2727+2828+ if ("~/.local/bin/envision" | path exists) {
2929+ envision upgrade
3030+ } else {
3131+ log info "Envision is not installed, no upgrade nessesary"
3232+ }
3333+3434+ log info "Migration completed: 1.x.x -> 2.x.x"
3535+}
+1
src/atomic-xr/mod.nu
···22# Copyright (c) 2025 Shiloh Fen <shiloh@shilohfen.com>
3344export use _debug.nu
55+export use _migrate.nu
56export use envision.nu
67export use flatpak.nu
78export use homebrew.nu
+1-1
src/axr.nu.in
···36363737def print-functions [] {
3838 get-functions
3939- | where $it not-has "_debug"
3939+ | where not ($it starts-with "_")
4040 | each {|function|
4141 let help = help atomic-xr $function | lines
4242