mesh/delivery merged: source.main moved to novox/mesh-catalog@6d000647de2d
mesh/check being carried to cff1005422c1 on 6d000647de2d | from f9dcbc295723
The one bundle that did everything becomes the manager bundle, which runs long and answers the seat's ten verbs and the three acting tools, and a tools bundle of its own that answers the four reading tools and writes nothing, so they answer while the manager fails to load or stops. Both import the module's one package for the layouts of the kept data and the log entries, the key form, the entries' names and the settings with their validity; the settings file and the account with its directory stay as they are. Builds: design 39 parts §1, §2, §3, §4, §5, §6, §7, §8
25 lines
581 B
Go
25 lines
581 B
Go
package main
|
|
|
|
// A licence's key taken by another (design 39 bus-and-switch §10, B6); the key form itself is the shared package's.
|
|
|
|
import (
|
|
"context"
|
|
|
|
. "claude-licence-manager/internal/licences"
|
|
)
|
|
|
|
// keyTaken names the licence other than name whose key is name's, or "" when none is.
|
|
func (m *Manager) keyTaken(ctx context.Context, name string) (string, error) {
|
|
all, err := m.Store.Licences(ctx)
|
|
if err != nil {
|
|
return "", err
|
|
}
|
|
key := KeyFor(name)
|
|
for _, l := range all {
|
|
if l.Name != name && KeyFor(l.Name) == key {
|
|
return l.Name, nil
|
|
}
|
|
}
|
|
return "", nil
|
|
}
|