package catalogue import ( "strings" ) // A collection is declared and filled by the client (novox/hq ADR 0349 ยง13, design 57 L1, issue 684): a collector // names a collection it collects, a contributor an item from a template of its own, and a handed composition plans // both for the node's provisioner client and renders neither. The three old namespaces read as collections of their // own name. Each file is filled one way: a piece of the other form on the machine is said as not placed. const ( collectorZsh = `{"module":"zsh","version":"1","moved":true, "claims":[{"name":"node-login-shell","scope":"node"}], "collections":[{"name":"widgets","comment":"#"}], "build":{"artifacts":[{"name":"files","kind":"archive","from":"files"}]}, "resources":[{"id":"rc","type":"file","path":"${machine:account-home}/.zshrc","owner":"${machine:account}", "mode":"0644","template":"files/zshrc"}]}` zshrcText = "# zsh\n${shell:zsh:normal}${collected:widgets}" contributorText = "source ${machine:account-home}/.p10k.zsh\n" contributorP10k = `{"module":"prompt","version":"1","moved":true, "items":[{"collection":"shell:zsh:normal","template":"files/zsh"}], "build":{"artifacts":[{"name":"files","kind":"archive","from":"files"}]}}` oldFormAliases = `{"module":"aliases","version":"1", "shell":[{"for":"zsh","slot":"normal","code":"alias ll='ls -l'\n"}]}` ) func builtWith(module string, texts map[string]string) []Built { return []Built{{Name: "files", Kind: ArtifactArchive, Reference: ArtifactStoreScheme + module + "/files/blobs/sha256:" + strings.Repeat("e", 64), Digest: "sha256:" + strings.Repeat("e", 64), Texts: texts}} }