~xenrox

Recent activity

Re: [PATCH 1/2] pages publish: Add flag to read siteConfig 8 hours ago

From Thorben Günther to ~emersion/hut-dev

On Thu, Dec 08, 2022 at 04:06:37PM +0100, Thorben Günther wrote:
> This site configuration file allows to set cache-control headers and a
> file to specify the 404 response.
>
> Implements: https://todo.sr.ht/~emersion/hut/24
> ---
> We still need to document somewhere how this site-config file has to
> look. Here is a simple example:
> https://paste.xenrox.net/~xenrox/3f277f6b8609218ec3093e36375e018622a307b3
> Maybe we should add one to the doc folder (similar to soju) and just
> reference that from the man page?
>
>  doc/hut.1.scd |  3 +++
>  pages.go      | 29 ++++++++++++++++++++++++++++-

[PATCH 2/2] pages publish: Deprecate not-found flag 8 hours ago

From Thorben Günther to ~emersion/hut-dev

Instead site-config should be used.
---
 doc/hut.1.scd | 3 ++-
 pages.go      | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/doc/hut.1.scd b/doc/hut.1.scd
index 6ba20c1..64295bb 100644
--- a/doc/hut.1.scd
+++ b/doc/hut.1.scd
@@ -466,7 +466,8 @@ Options are:
		Fully qualified domain name.

	*--not-found* <string>
[message trimmed]

[PATCH 1/2] pages publish: Add flag to read siteConfig 8 hours ago

From Thorben Günther to ~emersion/hut-dev

This site configuration file allows to set cache-control headers and a
file to specify the 404 response.

Implements: https://todo.sr.ht/~emersion/hut/24
---
We still need to document somewhere how this site-config file has to
look. Here is a simple example:
https://paste.xenrox.net/~xenrox/3f277f6b8609218ec3093e36375e018622a307b3
Maybe we should add one to the doc folder (similar to soju) and just
reference that from the man page?

 doc/hut.1.scd |  3 +++
 pages.go      | 29 ++++++++++++++++++++++++++++-
 2 files changed, 31 insertions(+), 1 deletion(-)
[message trimmed]

Re: [PATCH] builds submit: add --edit a day ago

From Thorben Günther to ~emersion/hut-dev

Pushed, thanks!

[PATCH] lists: Implement mailing list completion 17 days ago

From Thorben Günther to ~emersion/hut-dev

---
Same as with completeRepo for git.

 lists.go                          | 22 ++++++++++++++++++++--
 srht/listssrht/gql.go             |  9 +++++++++
 srht/listssrht/operations.graphql | 10 ++++++++++
 3 files changed, 39 insertions(+), 2 deletions(-)

diff --git a/lists.go b/lists.go
index e7819c8..51703b9 100644
--- a/lists.go
+++ b/lists.go
@@ -36,6 +36,7 @@ func newListsCommand() *cobra.Command {
	cmd.AddCommand(newListsACLCommand())
[message trimmed]

[PATCH] webhook list: Remove events and query 17 days ago

From Thorben Günther to ~emersion/hut-dev

Those two make the list too crowded and convoluted.
Instead they will be displayed by the future `webhook show` command.
---
For reference see:
https://lists.sr.ht/~emersion/hut-dev/%3C20220706183903.369324-1-admin%40xenrox.net%3E

 git.go                            |  7 ++-----
 hg.go                             |  6 ++----
 lists.go                          |  6 ++----
 meta.go                           |  6 ++----
 srht/gitsrht/gql.go               | 11 +----------
 srht/gitsrht/operations.graphql   | 11 -----------
 srht/hgsrht/gql.go                | 11 +----------
 srht/hgsrht/operations.graphql    | 11 -----------
[message trimmed]

[PATCH] export: Clarify usage 19 days ago

From Thorben Günther to ~emersion/hut-dev

Only display directories in the completion.
---
 export.go | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/export.go b/export.go
index 0ca340b..7a73da0 100644
--- a/export.go
+++ b/export.go
@@ -86,10 +86,13 @@ func newExportCommand() *cobra.Command {
		log.Println("Export complete.")
	}
	cmd := &cobra.Command{
		Use:   "export",
[message trimmed]

[PATCH 2/2] lists archive: Support last days 19 days ago

From Thorben Günther to ~emersion/hut-dev

---
 doc/hut.1.scd |  8 +++++++-
 lists.go      | 10 +++++++++-
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/doc/hut.1.scd b/doc/hut.1.scd
index 916dd3f..e54a96b 100644
--- a/doc/hut.1.scd
+++ b/doc/hut.1.scd
@@ -297,9 +297,15 @@ Options are:
*acl list* [list]
	List ACL entries of a mailing list.

*archive* [list]
[message trimmed]

[PATCH 1/2] lists: Add archive 19 days ago

From Thorben Günther to ~emersion/hut-dev

---
 doc/hut.1.scd                     |  3 ++
 lists.go                          | 68 +++++++++++++++++++++++++++++++
 srht/listssrht/gql.go             | 21 ++++++++++
 srht/listssrht/operations.graphql | 16 ++++++++
 4 files changed, 108 insertions(+)

diff --git a/doc/hut.1.scd b/doc/hut.1.scd
index 42a942c..916dd3f 100644
--- a/doc/hut.1.scd
+++ b/doc/hut.1.scd
@@ -297,6 +297,9 @@ Options are:
*acl list* [list]
	List ACL entries of a mailing list.
[message trimmed]

[PATCH] pages publish: Use longer timeout 19 days ago

From Thorben Günther to ~emersion/hut-dev

Commands that upload or download larger files should have a longer
timeout.
---
 main.go  | 2 ++
 pages.go | 1 +
 2 files changed, 3 insertions(+)

diff --git a/main.go b/main.go
index c4fc20f..799d9e4 100644
--- a/main.go
+++ b/main.go
@@ -24,6 +24,8 @@ const ownerPrefixes = "~"

const dateLayout = "Mon, 02 Jan 2006 15:04:05 -0700"
[message trimmed]