chore: started edits 0e773e7e
Steve · 2025-10-30 17:03 1 file(s) · +40 −0
src/index.ts +40 −0
138 138
	},
139 139
});
140 140
141 +
const editTxt = command({
142 +
	name: "txt",
143 +
	description: "Set TXT record for an ENS name",
144 +
	args: {
145 +
		name: positional({
146 +
			type: string,
147 +
			description: "Target ENS name",
148 +
		}),
149 +
		record: positional({
150 +
			type: string,
151 +
			description: "The type of TXT you want to update, e.g. .com.discord",
152 +
		}),
153 +
		value: positional({
154 +
			type: string,
155 +
			description: "Value of the TXT record being set, e.g. @myusername",
156 +
		}),
157 +
	},
158 +
	handler: async (args) => {
159 +
		if (!args.name) {
160 +
			console.log("Please provide an ENS Name `atlas resolver <vitalik.eth>`");
161 +
			return;
162 +
		}
163 +
		await getResolver(args);
164 +
	},
165 +
});
166 +
167 +
const setAddress = command({});
168 +
169 +
const setResolver = command({});
170 +
171 +
const setPrimaryName = command({});
172 +
173 +
const setAbi = command({});
174 +
175 +
const set = subcommands({
176 +
	name: "edit",
177 +
	description: "Edit records an ENS name",
178 +
	cmds: { editTxt },
179 +
});
180 +
141 181
const cli = subcommands({
142 182
	name: "atlas",
143 183
	description: `