File tree 3 files changed +27
-0
lines changed
3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1
1
package cmd
2
+
3
+ import (
4
+ "fmt"
5
+
6
+ "github.com/charmbracelet/log"
7
+ )
8
+
9
+ func Dirlist (url string ) {
10
+ log .Infof ("Starting directory scan on %s..." , url )
11
+ fmt .Println (url )
12
+ }
Original file line number Diff line number Diff line change 5
5
6
6
"github.com/charmbracelet/lipgloss"
7
7
"github.com/charmbracelet/log"
8
+ "github.com/pushfs/sif/cmd"
8
9
)
9
10
10
11
var style = lipgloss .NewStyle ().
@@ -30,5 +31,8 @@ func main() {
30
31
settings := parseURLs ()
31
32
for _ , url := range settings .URLs {
32
33
log .Infof ("Looking up %s..." , url )
34
+ if settings .Dirlist {
35
+ cmd .Dirlist (url )
36
+ }
33
37
}
34
38
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "folders" : [
3
+ {
4
+ "path" : " ."
5
+ },
6
+ {
7
+ "name" : " sif-runtime" ,
8
+ "path" : " ../sif-runtime"
9
+ }
10
+ ],
11
+ "settings" : {}
12
+ }
You can’t perform that action at this time.
0 commit comments