mirror of
https://github.com/lunchcat/sif.git
synced 2026-03-12 21:23:04 -07:00
adding vscode workspace files to project
This commit is contained in:
@@ -1 +1,12 @@
|
|||||||
package cmd
|
package cmd
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
|
||||||
|
"github.com/charmbracelet/log"
|
||||||
|
)
|
||||||
|
|
||||||
|
func Dirlist(url string) {
|
||||||
|
log.Infof("Starting directory scan on %s...", url)
|
||||||
|
fmt.Println(url)
|
||||||
|
}
|
||||||
|
|||||||
4
main.go
4
main.go
@@ -5,6 +5,7 @@ import (
|
|||||||
|
|
||||||
"github.com/charmbracelet/lipgloss"
|
"github.com/charmbracelet/lipgloss"
|
||||||
"github.com/charmbracelet/log"
|
"github.com/charmbracelet/log"
|
||||||
|
"github.com/pushfs/sif/cmd"
|
||||||
)
|
)
|
||||||
|
|
||||||
var style = lipgloss.NewStyle().
|
var style = lipgloss.NewStyle().
|
||||||
@@ -30,5 +31,8 @@ func main() {
|
|||||||
settings := parseURLs()
|
settings := parseURLs()
|
||||||
for _, url := range settings.URLs {
|
for _, url := range settings.URLs {
|
||||||
log.Infof("Looking up %s...", url)
|
log.Infof("Looking up %s...", url)
|
||||||
|
if settings.Dirlist {
|
||||||
|
cmd.Dirlist(url)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
12
sif.code-workspace
Normal file
12
sif.code-workspace
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"path": "."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "sif-runtime",
|
||||||
|
"path": "../sif-runtime"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"settings": {}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user