2022-09-18 16:49:34 +02:00
|
|
|
package main
|
|
|
|
|
2022-11-27 01:56:07 +01:00
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"github.com/bitfield/script"
|
|
|
|
)
|
2022-09-18 16:49:34 +02:00
|
|
|
|
|
|
|
func main() {
|
|
|
|
_, err := script.
|
|
|
|
Echo("# Readme").
|
|
|
|
WriteFile("README.md")
|
2022-11-22 23:35:52 +01:00
|
|
|
|
2022-09-18 16:49:34 +02:00
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
2022-11-27 01:56:07 +01:00
|
|
|
println("ran stuff")
|
|
|
|
entries, err := os.ReadDir(".")
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
for _, entry := range entries {
|
|
|
|
if !entry.IsDir() {
|
|
|
|
file, err := os.ReadFile(entry.Name())
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
println(string(file))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
wd, err := os.Getwd()
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
|
|
|
|
println(wd)
|
2022-09-18 16:49:34 +02:00
|
|
|
}
|