Skip to content

Commit 3ecd149

Browse files
committed
[all] Clean up run.nu and update changelog
1 parent fdb2cfb commit 3ecd149

File tree

3 files changed

+9
-24
lines changed

3 files changed

+9
-24
lines changed

CHANGELOG.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,15 @@
190190
<a id="markdown-next-release" name="next-release"></a>
191191

192192
- Added:
193-
- Binary target for `giti`. This will be an interactive git client that is tuified. It
194-
is meant to be a useful productivity tool and an example of what is possible w/ tuify.
193+
- Binary target for `giti`. This is an interactive git client that is tuified. It is a
194+
productivity tool for git workflows, and is meant as a replacement for directly using
195+
`git`. This also serves as a real world example of using the `r3bl_tuify` crate.
196+
- View all the `giti branch` subcommands (e.g. `delete`, `checkout`, `new`, etc.) and
197+
select one subcommand using the `select_from_list()` when `giti branch` runs.
198+
- Delete one or more branches using `select_from_list()` when `giti branch delete`
199+
command runs.
200+
- `Ctrl + c` now behaves just like the `Escape` key. In the past, pressing `Ctrl + c`
201+
would do nothing the user could not exit the app by pressing this shortcut.
195202

196203
### v0.1.21 (2023-10-21)
197204
<a id="markdown-v0.1.21-2023-10-21" name="v0.1.21-2023-10-21"></a>

ansi_color/run.nu

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def main [...args: string] {
3232
match $command {
3333
"watch-one-test" => {watch-one-test $args}
3434
"watch-macro-expansion-one-test" => {watch-macro-expansion-one-test $args}
35-
"all" => {all}
3635
"build" => {build}
3736
"clean" => {clean}
3837
"run" => {run}
@@ -104,7 +103,6 @@ def print-help [command: string] {
104103
if $command == "all" {
105104
print $'Usage: (ansi blue_bold)run.nu(ansi reset) (ansi green_bold)<command>(ansi reset) (ansi yellow)[args](ansi reset)'
106105
print $'(ansi green_bold)<command>(ansi reset) can be:'
107-
print $' (ansi green)all(ansi reset)'
108106
print $' (ansi green)build(ansi reset)'
109107
print $' (ansi green)clean(ansi reset)'
110108
print $' (ansi green)run(ansi reset)'
@@ -132,15 +130,6 @@ def print-help [command: string] {
132130
}
133131
}
134132

135-
def all [] {
136-
clean
137-
build
138-
test
139-
clippy
140-
docs
141-
rustfmt
142-
}
143-
144133
def build [] {
145134
cargo build
146135
}

tuify/run.nu

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def main [...args: string] {
3030
let command = $args | get 0
3131

3232
match $command {
33-
"all" => {all}
3433
"build" => {build}
3534
"clean" => {clean}
3635
"run" => {run}
@@ -115,7 +114,6 @@ def print-help [command: string] {
115114
if $command == "all" {
116115
print $'Usage: (ansi blue_bold)run.nu(ansi reset) (ansi green_bold)<command>(ansi reset) (ansi yellow)[args](ansi reset)'
117116
print $'(ansi green_bold)<command>(ansi reset) can be:'
118-
print $' (ansi green)all(ansi reset)'
119117
print $' (ansi green)build(ansi reset)'
120118
print $' (ansi green)clean(ansi reset)'
121119
print $' (ansi green)run(ansi reset)'
@@ -145,15 +143,6 @@ def print-help [command: string] {
145143
}
146144
}
147145

148-
def all [] {
149-
clean
150-
build
151-
test
152-
clippy
153-
docs
154-
rustfmt
155-
}
156-
157146
def build [] {
158147
cargo build
159148
}

0 commit comments

Comments
 (0)