Skip to content

Commit 542c8e1

Browse files
committed
1 parent d1d423c commit 542c8e1

File tree

5 files changed

+13
-11
lines changed

5 files changed

+13
-11
lines changed

SECURITY.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
Here's a list of versions of the project are
66
currently being supported with security updates.
77

8-
9-
| Version | Supported |
10-
| ------- | ------------------ |
11-
| 0.2 | :white_check_mark: |
8+
| Version | Supported |
9+
| ------- | --------- |
10+
| 0.1 ||
11+
| 0.2 ||
12+
| 0.3 ||
1213

1314
#### ‼️ Reporting a Vulnerability
1415

cmd/main.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ import (
88
)
99

1010
func main () {
11-
if len(os.Args) != 2 {
11+
if len(os.Args) > 2 {
1212
fmt.Println("Error parsing argument: path specified incorrectly")
1313
} else {
14-
path := os.Args[1]
14+
path := "."
15+
if len(os.Args) == 2 {
16+
path = os.Args[1]
17+
}
1518
fmt.Print(internal.Respond(path))
1619
}
1720
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module cli
33
go 1.25.1
44

55
require (
6-
github.com/statloc/core v0.2.0
6+
github.com/statloc/core v0.3.0
77
github.com/stretchr/testify v1.11.1
88
)
99

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,8 +554,8 @@ github.com/spf13/viper v1.12.0 h1:CZ7eSOd3kZoaYDLbXnmzgQI5RlciuXBMA+18HwHRfZQ=
554554
github.com/spf13/viper v1.12.0/go.mod h1:b6COn30jlNxbm/V2IqWiNWkJ+vZNiMNksliPCiuKtSI=
555555
github.com/ssgreg/nlreturn/v2 v2.2.1 h1:X4XDI7jstt3ySqGU86YGAURbxw3oTDPK9sPEi6YEwQ0=
556556
github.com/ssgreg/nlreturn/v2 v2.2.1/go.mod h1:E/iiPB78hV7Szg2YfRgyIrk1AD6JVMTRkkxBiELzh2I=
557-
github.com/statloc/core v0.2.0 h1:VjFxY42HONSXEK7L6g51RoMU5bWelkgKQYV4U/jyVE8=
558-
github.com/statloc/core v0.2.0/go.mod h1:wSaKZ/WZpoghw/PGmI54rBb5PfBxoESkRH2EesFUrn0=
557+
github.com/statloc/core v0.3.0 h1:tJbgDGe5fvGt4tsmb0cKaAEV5VSGenJ61SrDdrAC2Xs=
558+
github.com/statloc/core v0.3.0/go.mod h1:wSaKZ/WZpoghw/PGmI54rBb5PfBxoESkRH2EesFUrn0=
559559
github.com/stbenjam/no-sprintf-host-port v0.2.0 h1:i8pxvGrt1+4G0czLr/WnmyH7zbZ8Bg8etvARQ1rpyl4=
560560
github.com/stbenjam/no-sprintf-host-port v0.2.0/go.mod h1:eL0bQ9PasS0hsyTyfTjjG+E80QIyPnBVQbYZyv20Jfk=
561561
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=

internal/utils_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ func TestRespond(t *testing.T) {
2020
// go line by line
2121
scanner := bufio.NewScanner(file)
2222
for scanner.Scan() {
23-
println(response, scanner.Text())
2423
assert.True(t, strings.Contains(response, scanner.Text()))
2524
}
2625
}
@@ -35,7 +34,6 @@ func TestGetTable(t *testing.T) {
3534
// go line by line
3635
scanner := bufio.NewScanner(file)
3736
for scanner.Scan() {
38-
println(table, scanner.Text())
3937
assert.True(t, strings.Contains(table, scanner.Text()))
4038
}
4139
}

0 commit comments

Comments
 (0)