From 7f5e4c4169dd29e5d39bc4611f86ca4853c1c7e2 Mon Sep 17 00:00:00 2001 From: amtoine Date: Sun, 17 Dec 2023 20:22:05 +0100 Subject: [PATCH] better modules --- pkgs/nu-git-manager-sugar/nu-git-manager-sugar/git/mod.nu | 5 +++-- pkgs/nu-git-manager-sugar/nu-git-manager-sugar/git/prompt.nu | 2 +- pkgs/nu-git-manager-sugar/nu-git-manager-sugar/mod.nu | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/nu-git-manager-sugar/nu-git-manager-sugar/git/mod.nu b/pkgs/nu-git-manager-sugar/nu-git-manager-sugar/git/mod.nu index 539cda10..e3784151 100644 --- a/pkgs/nu-git-manager-sugar/nu-git-manager-sugar/git/mod.nu +++ b/pkgs/nu-git-manager-sugar/nu-git-manager-sugar/git/mod.nu @@ -1,8 +1,9 @@ use std log -use ../git/lib git [get-status] +module lib/ +use lib git [get-status] -use ../completions.nu [ +use completions [ GIT_QUERY_TABLES, GIT_STRATEGIES, git-query-tables, get-remotes, get-branches, get-strategies ] diff --git a/pkgs/nu-git-manager-sugar/nu-git-manager-sugar/git/prompt.nu b/pkgs/nu-git-manager-sugar/nu-git-manager-sugar/git/prompt.nu index e7507aa6..43422acf 100644 --- a/pkgs/nu-git-manager-sugar/nu-git-manager-sugar/git/prompt.nu +++ b/pkgs/nu-git-manager-sugar/nu-git-manager-sugar/git/prompt.nu @@ -1,4 +1,4 @@ -use ../git/lib/prompt.nu [get-left-prompt] +use ../git/lib prompt [get-left-prompt] const DEFAULT_PROMPT_INDICATORS = { plain: "> ", diff --git a/pkgs/nu-git-manager-sugar/nu-git-manager-sugar/mod.nu b/pkgs/nu-git-manager-sugar/nu-git-manager-sugar/mod.nu index f40089d0..bdb38974 100644 --- a/pkgs/nu-git-manager-sugar/nu-git-manager-sugar/mod.nu +++ b/pkgs/nu-git-manager-sugar/nu-git-manager-sugar/mod.nu @@ -1,3 +1,4 @@ +module completions.nu export module extra.nu -export module git +export module git/ export module github.nu