INNER CODE UNIT · Go

addRootCommands

geekjourneyx/md2wechat-skill · cmd/md2wechat/main.go:325

func addRootCommands(root *cobra.Command) {
	for _, entry := range rootCommandManifest() {
		if entry.Command == nil {
			continue
		}
		if entry.WechatAccount {
			addWechatAccountFlag(entry.Command)
		}
		root.AddCommand(entry.Command)
	}
}

func prepareWeChatSideEffect() error {
	return prepareWeChatSideEffectWithAPIKey("")
}

func prepareWeChatSideEffectWithAPIKey(apiKeyOverride string) error {
	if err := cfg.ResolveWeChatAccount(wechatAccountName); err != nil {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…