From 6567ec5e649d2d5b17f3a93540d71a7a719fa0e2 Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Mon, 23 Aug 2021 14:09:03 +1000 Subject: [PATCH] docket/treaty: cleanup marks, generators --- pkg/garden/gen/docket/advertise.hoon | 6 ------ pkg/garden/gen/docket/install.hoon | 7 +++++++ pkg/garden/gen/docket/uninstall.hoon | 7 +++++++ pkg/garden/gen/treaty/add-desk.hoon | 7 +++++++ pkg/garden/gen/treaty/publish.hoon | 7 +++++++ pkg/garden/gen/treaty/remove-desk.hoon | 7 +++++++ pkg/garden/gen/treaty/unpublish.hoon | 7 +++++++ .../mar/{docket-install.hoon => docket/install.hoon} | 0 .../mar/{docket-uninstall.hoon => docket/uninstall.hoon} | 0 9 files changed, 42 insertions(+), 6 deletions(-) delete mode 100644 pkg/garden/gen/docket/advertise.hoon create mode 100644 pkg/garden/gen/docket/install.hoon create mode 100644 pkg/garden/gen/docket/uninstall.hoon create mode 100644 pkg/garden/gen/treaty/add-desk.hoon create mode 100644 pkg/garden/gen/treaty/publish.hoon create mode 100644 pkg/garden/gen/treaty/remove-desk.hoon create mode 100644 pkg/garden/gen/treaty/unpublish.hoon rename pkg/garden/mar/{docket-install.hoon => docket/install.hoon} (100%) rename pkg/garden/mar/{docket-uninstall.hoon => docket/uninstall.hoon} (100%) diff --git a/pkg/garden/gen/docket/advertise.hoon b/pkg/garden/gen/docket/advertise.hoon deleted file mode 100644 index 2ce71e3b6f..0000000000 --- a/pkg/garden/gen/docket/advertise.hoon +++ /dev/null @@ -1,6 +0,0 @@ -/- *docket -:- %say -|= $: [now=@da eny=@uvJ =beak] - [[=desk ~] ~] - == -docket-advertise+desk diff --git a/pkg/garden/gen/docket/install.hoon b/pkg/garden/gen/docket/install.hoon new file mode 100644 index 0000000000..b44bc768e5 --- /dev/null +++ b/pkg/garden/gen/docket/install.hoon @@ -0,0 +1,7 @@ +:: :docket|install: Install a desk through docket +:: +:- %say +|= $: [now=@da eny=@uvJ bec=beak] + [[=ship =desk ~] ~] + == +[%docket-install ship desk] diff --git a/pkg/garden/gen/docket/uninstall.hoon b/pkg/garden/gen/docket/uninstall.hoon new file mode 100644 index 0000000000..74144e8ec4 --- /dev/null +++ b/pkg/garden/gen/docket/uninstall.hoon @@ -0,0 +1,7 @@ +:: :docket|uninstall: Uninstall a desk through docket +:: +:- %say +|= $: [now=@da eny=@uvJ bec=beak] + [[=desk ~] ~] + == +[%docket-uninstall desk] diff --git a/pkg/garden/gen/treaty/add-desk.hoon b/pkg/garden/gen/treaty/add-desk.hoon new file mode 100644 index 0000000000..b2ece97fa5 --- /dev/null +++ b/pkg/garden/gen/treaty/add-desk.hoon @@ -0,0 +1,7 @@ +:: :treaty|add-desk: Republish remote desk +:: +:- %say +|= $: [now=@da eny=@uvJ bec=beak] + [[=ship =desk ~] ~] + == +[%alliance-update-0 %add ship desk] diff --git a/pkg/garden/gen/treaty/publish.hoon b/pkg/garden/gen/treaty/publish.hoon new file mode 100644 index 0000000000..a77df652cc --- /dev/null +++ b/pkg/garden/gen/treaty/publish.hoon @@ -0,0 +1,7 @@ +:: :treaty|publish: Publish local desk +:: +:- %say +|= $: [now=@da eny=@uvJ bec=beak] + [[=desk ~] ~] + == +[%alliance-update-0 %add p.bec desk] diff --git a/pkg/garden/gen/treaty/remove-desk.hoon b/pkg/garden/gen/treaty/remove-desk.hoon new file mode 100644 index 0000000000..07303fbf9c --- /dev/null +++ b/pkg/garden/gen/treaty/remove-desk.hoon @@ -0,0 +1,7 @@ +:: :treaty|remove-desk: Stop republishing remote desk +:: +:- %say +|= $: [now=@da eny=@uvJ bec=beak] + [[=ship =desk ~] ~] + == +[%alliance-update-0 %del ship desk] diff --git a/pkg/garden/gen/treaty/unpublish.hoon b/pkg/garden/gen/treaty/unpublish.hoon new file mode 100644 index 0000000000..a5f136ff05 --- /dev/null +++ b/pkg/garden/gen/treaty/unpublish.hoon @@ -0,0 +1,7 @@ +:: :treaty|unpublish: Stop publishing local desk +:: +:- %say +|= $: [now=@da eny=@uvJ bec=beak] + [[=desk ~] ~] + == +[%alliance-update-0 %del p.bec desk] diff --git a/pkg/garden/mar/docket-install.hoon b/pkg/garden/mar/docket/install.hoon similarity index 100% rename from pkg/garden/mar/docket-install.hoon rename to pkg/garden/mar/docket/install.hoon diff --git a/pkg/garden/mar/docket-uninstall.hoon b/pkg/garden/mar/docket/uninstall.hoon similarity index 100% rename from pkg/garden/mar/docket-uninstall.hoon rename to pkg/garden/mar/docket/uninstall.hoon