File tree Expand file tree Collapse file tree 5 files changed +13
-11
lines changed
Expand file tree Collapse file tree 5 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 55Here's a list of versions of the project are
66currently 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
Original file line number Diff line number Diff line change @@ -8,10 +8,13 @@ import (
88)
99
1010func 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}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module cli
33go 1.25.1
44
55require (
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
Original file line number Diff line number Diff line change @@ -554,8 +554,8 @@ github.com/spf13/viper v1.12.0 h1:CZ7eSOd3kZoaYDLbXnmzgQI5RlciuXBMA+18HwHRfZQ=
554554github.com/spf13/viper v1.12.0 /go.mod h1:b6COn30jlNxbm/V2IqWiNWkJ+vZNiMNksliPCiuKtSI =
555555github.com/ssgreg/nlreturn/v2 v2.2.1 h1:X4XDI7jstt3ySqGU86YGAURbxw3oTDPK9sPEi6YEwQ0 =
556556github.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 =
559559github.com/stbenjam/no-sprintf-host-port v0.2.0 h1:i8pxvGrt1+4G0czLr/WnmyH7zbZ8Bg8etvARQ1rpyl4 =
560560github.com/stbenjam/no-sprintf-host-port v0.2.0 /go.mod h1:eL0bQ9PasS0hsyTyfTjjG+E80QIyPnBVQbYZyv20Jfk =
561561github.com/stretchr/objx v0.1.0 /go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME =
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments