hzDocs
hzDocs
文章 / 文档hedzr.com首页

cmdr series

介绍 cmdr

Guide

你的首个 CLI app更适合工程实践的版本
循序渐进
基本概念
命令命令:执行外部程序命令:预设参数命令:重定向命令:动态命令清单命令:在配置文件中定义别名清单命令:事件响应函数标志标志:必须项标志:可翻转组标志:枚举值标志:`Head -1` 风格标志:调用外部工具获得输入标志:自动否定标志:加号 `+` 前缀标志:事件响应函数解析结果内建命令和标志帮助子系统可共享共存的 app 实例辨析顶级函数WithOptsBackstage
如何……
Auto-close the ClosersRead config into structUsing is DetectorsUsing Store

References

What's New
Packages

Others

Examples
Blueprint
产品发布
产品发布之前
介绍 cmdr-cxx

Guide

cmdr supports

Intro

Guide

More features

References

Others

evendeep(-go)

Guide

Usagesdeepcopydeepdiffdeepequal
logg/slog(-go)

Guide

Guide

others

Components
trie-cxx

Guide

Guide

links

On Github

WithOpts

WithXXX Options...

cmdr WithOpts

  • WithUnmatchedAsError(b bool)
  • WithStore(conf store.Store, topLevelPrefix ...string)
  • WithRawStore(conf store.Store)
  • WithExternalLoaders(loaders ...cli.Loader)
  • WithExternalLoadersReplaced(loaders ...cli.Loader)
  • WithTasksBeforeParse(tasks ...cli.Task)
  • WithTasksParsed(tasks ...cli.Task)
  • WithTasksBeforeRun(tasks ...cli.Task)
  • WithTasksAfterRun(tasks ...cli.Task)
  • WithTasksPostCleanup(tasks ...cli.Task)
  • WithTasksSetupPeripherals(tasks ...cli.Task)
  • WithPeripherals(peripherals PeripheralMap)
    • Peripheral(name string) basics.Peripheral
    • PeripheralT[T basics.Peripheral](name string) T
  • WithSortInHelpScreen(b bool)
  • WithDontGroupInHelpScreen(b bool)
  • WithDontExecuteAction(b bool)
  • WithForceDefaultAction(b bool)
  • WithAutoEnvBindings(b bool, prefix ...string)
  • WithConfig(conf *cli.Config)

额外的话题

Package Level Functions

Builtin Commands

What is Next?

Components

Components

On Github

How is this guide?

最后更新于

目录

cmdr WithOpts
额外的话题