aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2024-05-24 14:32:02 +0000
committerterminaldweller <devi@terminaldweller.com>2024-05-24 14:32:02 +0000
commit215db0c35070ca65856c49274fdcce026a45076e (patch)
treebf124c385b0bfaaa6bcd0abf0f0077dd85892ba0 /main.go
parentfixes #24, fixes #25, fixes #29 (diff)
downloadmilla-1.0.0.tar.gz
milla-1.0.0.zip
fixes #30v1.0.0
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.go b/main.go
index db2a31b..6d08e63 100644
--- a/main.go
+++ b/main.go
@@ -400,8 +400,11 @@ func handleCustomCommand(
return
}
+ if customCommand.Limit != 0 {
+ logs = logs[:customCommand.Limit]
+ }
+
log.Println(logs)
- logs = logs[:customCommand.Limit]
if err != nil {
log.Println(err.Error())