aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-12-18 15:50:46 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-12-18 15:50:46 +0900
commit2f676c9d6e7baac289409cbcabde5b6e53b32ec3 (patch)
tree87f1080df09147f25435cbc44be98dba0f85750b /main.go
parentbbace8f84bfcdff7f6b769b129faac33d44bcb52 (diff)
fst: rename from fipc
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.go b/main.go
index 3087cd54..e3914356 100644
--- a/main.go
+++ b/main.go
@@ -12,7 +12,7 @@ import (
"text/tabwriter"
"git.ophivana.moe/security/fortify/dbus"
- "git.ophivana.moe/security/fortify/fipc"
+ "git.ophivana.moe/security/fortify/fst"
"git.ophivana.moe/security/fortify/internal"
"git.ophivana.moe/security/fortify/internal/app"
"git.ophivana.moe/security/fortify/internal/fmsg"
@@ -103,7 +103,7 @@ func main() {
fmt.Println(license)
fmsg.Exit(0)
case "template": // print full template configuration
- if s, err := json.MarshalIndent(fipc.Template(), "", " "); err != nil {
+ if s, err := json.MarshalIndent(fst.Template(), "", " "); err != nil {
fmsg.Fatalf("cannot generate template: %v", err)
panic("unreachable")
} else {
@@ -130,7 +130,7 @@ func main() {
fmsg.Fatal("app requires at least 1 argument")
}
- config := new(fipc.Config)
+ config := new(fst.Config)
if f, err := os.Open(args[1]); err != nil {
fmsg.Fatalf("cannot access config file %q: %s", args[1], err)
panic("unreachable")
@@ -180,7 +180,7 @@ func main() {
_ = set.Parse(args[1:])
// initialise config from flags
- config := &fipc.Config{
+ config := &fst.Config{
ID: fid,
Command: set.Args(),
}
@@ -276,7 +276,7 @@ func main() {
panic("unreachable")
}
-func runApp(config *fipc.Config) {
+func runApp(config *fst.Config) {
if os.SdBooted() {
fmsg.VPrintln("system booted with systemd as init system")
}