MCPcopy Index your code
hub / github.com/numbersprotocol/nit / help

Function help

src/run.ts:87–258  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 * CLI Usage
86 *----------------------------------------------------------------------------*/
87async function help() {
88 const logo = `
89 ████████████████████████████████████
90 ████████████████████████████████████
91 ████████████████████████████████████
92 ████████████████████████████████████
93 ████████▀▀▀▀▀▀████████▀▀▀▀▀▀████████
94 ████████ ▄█▌ ▀████▌ ████████
95 ████████ Φ███▌ ▀██▌ ████████
96 ████████ ╙▀█▌ ╙▀ ████████
97 ████████ L ▐█▄ ████████
98 ████████ ▐█▄ ▐███▄ ████████
99 ████████ ▐███▄ ▐██▀ ████████
100 ████████ ▐██████▄▀ ████████
101 ████████████████████████████████████
102 ████████████████████████████████████
103 ████████████████████████████████████
104 ████████████████████████████████████
105 ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
106 `;
107 const sections = [
108 {
109 content: logo,
110 raw: true
111 },
112 {
113 header: "Available Commands",
114 content: [
115 "init Initialize working environment",
116 "config Edit Nit configuration",
117 "add Add assetTree",
118 "status Show current temporary commit",
119 "commit Generate and register commit to web3",
120 "sign Create integrity signature",
121 "verify Verify integrity signature",
122 "log Show asset's commits",
123 "diff Show diff between two commits",
124 "help Show this usage tips",
125 ]
126 },
127 {
128 header: 'init',
129 content: [
130 "$ nit init",
131 ]
132 },
133 {
134 header: 'config',
135 content: [
136 "$ nit config -e|--edit",
137 "$ nit config -l|--list",
138 ]
139 },
140 {
141 header: 'add',
142 content: [
143 "$ nit add {underline assetFilepath} -m|--message {underline abstract}",
144 "$ nit add {underline assetFilepath} -m|--message {underline abstract} --nft-record-cid {underline cid}",

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected