Skip to content

Commit c47ccd4

Browse files
melMassfdncred
andauthored
refactor: ✨ (#418)
* refactor: ✨ move in one commit Eveything in modules should probably be changed to `exported` defs. The idea is to move everything first to keep proper history. * refactor: 📝 add modules readme (wip) * refactor: ✨ small move * refactor: 📝 changed nestring, updated modules readme * refactor: 📝 to document or not to document * fix: 🐛 themes replaced the template to use `main` and regenerated them from lemnos themes. * Revert "fix: 🐛 themes" This reverts commit 4918d36. * refactor: ✨ introduce sourced - Created a source `root` in which sourcable demos are stored. Some might get converted to modules later on. - Moved some files to bin too. * fix: 🐛 fehbg.nu * fix: 🐛 modules/after.nu * moved some other stuff around --------- Co-authored-by: Darren Schroeder <[email protected]>
1 parent 382696c commit c47ccd4

File tree

128 files changed

+185
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+185
-12
lines changed

README.md

+16-1
File renamed without changes.
File renamed without changes.

formatting/README.md

-5
This file was deleted.
File renamed without changes.
File renamed without changes.

make_release/get_coverage.nu

100755100644
File mode changed.

modules/README.md

+156

after/after.nu renamed to modules/after/after.nu

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ def "nu-complete ps" [] {
33
}
44

55
# after <pid> { do something ... }
6-
export def after [pid: string@"nu-complete ps" action ] {
6+
export def main [pid: string@"nu-complete ps" action ] {
77
do -i { tail --pid $pid -f /dev/null }
88
do $action
99
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

modules/formats/README.md

+5
File renamed without changes.
File renamed without changes.

strings/remove-diacritics.nu renamed to modules/formats/remove-diacritics.nu

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Usage: (remove-diacritics 'Zażółć gęślą jaźń') == Zazolc gesla jazn
44

5-
def remove-diacritics [
5+
export def main [
66
arg: string
77
] {
88
let diacritics_map = {
File renamed without changes.

formatting/number-format.nu renamed to modules/formats/to-number-format.nu

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
def number-format [
1+
export def number-format [
22
num # Number to format
33
--thousands_delim (-t) = ' ' # Thousands delimiter: number-format 1000 -t ': 1'000
44
--whole_part_length (-w) = 0 # Length of padding whole-part digits: number-format 123 -w 6: 123
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

progress_bar/percent_meter.nu renamed to sourced/progress_bar/percent_meter.nu

+5-3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ def hide_cursor [] {
1616
print $"(ansi -e '?25l')"
1717
}
1818

19-
hide_cursor
20-
loading
21-
show_cursor
19+
def demo_percent_meter [] {
20+
hide_cursor
21+
loading
22+
show_cursor
23+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)