lightsystemdarkgreen
@ 261119.3

261119.1 d1753f14c7293dd5f2cdb3b5b4488e94ab87a52a The project is dirview and its command drvu

The name is final. NAME, back from WORKING_NAME, holds drvu, and everything the tool names follows: the binaries drvu, drvu-public and drvu-syntax, DRVU_ADDR and the other variables, ~/.local/state/drvu, the journal tag, .drvu-follow, /_drvu/ and the systemd units.

The project, its Go module and its Debian packages are dirview and dirview-syntax. The Makefile takes that name from the module path as PACKAGE, so the name test now guards both names.

Old names stop working: WWW_ADDR, ~/.local/state/www, the www package and running www servers stay until removed.

reading declarations

Changes to endpoint.go. All files

endpoint.go

@@ -1,4 +1,4 @@-package www+package dirview  import ( 	"context"@@ -56,7 +56,7 @@ var ( 	secretEnv = envPrefix + "SECRET" ) -// secretToken returns the token in WWW_SECRET, or a random one when it is+// secretToken returns the token in DRVU_SECRET, or a random one when it is // unset. A bad token's error names the variable but not its value, which // is a secret. func secretToken() (string, error) {@@ -70,9 +70,9 @@ func secretToken() (string, error) { 	return v, nil } -// endpointOf returns where c serves. A bare --share takes WWW_SHARE,-// and a start without -a takes WWW_ADDR; --list, --kill and --restart-// without an address cover every server, so WWW_ADDR leaves them be.+// endpointOf returns where c serves. A bare --share takes DRVU_SHARE,+// and a start without -a takes DRVU_ADDR; --list, --kill and --restart+// without an address cover every server, so DRVU_ADDR leaves them be. // An error from a variable's value names the variable. func endpointOf(c config, uid int) (netip.AddrPort, error) { 	if c.sharing {