aboutsummaryrefslogtreecommitdiff
path: root/lib/tools/upgrade.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-03-27 15:22:46 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-03-27 15:22:46 -0700
commita1849da175765350e013bdeecfa4e0ad3c066937 (patch)
tree616a115790271757148044e2b3228fb715c00726 /lib/tools/upgrade.nom
parentbb07e6724118c431c3beed4060776678128905a1 (diff)
Autoformat (mostly just to do with the new
blank-line-after-end-of-multi-indent-block rule
Diffstat (limited to 'lib/tools/upgrade.nom')
-rwxr-xr-xlib/tools/upgrade.nom5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/tools/upgrade.nom b/lib/tools/upgrade.nom
index 65e9e68..f188276 100755
--- a/lib/tools/upgrade.nom
+++ b/lib/tools/upgrade.nom
@@ -1,5 +1,4 @@
#!/usr/bin/env nomsu -V7.0.0
-
###
Tool to automatically update code from old versions of Nomsu. Usage:
nomsu tools/upgrade.nom [-i] file1 file2 directory1 ...
@@ -19,6 +18,7 @@ command line program with $args:
if $start_version:
try:
use $start_version
+
$version = ($args."upgrade-to" or $(NOMSU VERSION))
$test = ($args.t or $args.test)
for $filename in $args.extras:
@@ -31,6 +31,7 @@ command line program with $args:
$uptree =
$tree upgraded from ($start_version or ($tree.version or $(NOMSU VERSION))) to
$version
+
$text = "\$leading_indent\($uptree as nomsu, text, with "\n" -> "\n\$leading_indent")"
when:
$inplace:
@@ -44,4 +45,4 @@ command line program with $args:
say (bright "\$filename will be changed")
else:
- say $text inline
+ say $text inline \ No newline at end of file