40ants / 40ants/defmain

Scoping of subcommands

Abierto
#5 3 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Common Lisp
Estrellas
32
Forks
1
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

```
(defmain (foo create) ...)
(defmain (bar create) ...)
```

It's not clear from the documentation, but the two will interfere even if they're different subcommands. Should one use symbols in different packages? E.g.
```
(defmain (foo my-cli-foo:create) ...)
(defmain (bar my-cli-bar:create) ...)
```
Or is there some way of decoupling the name of a subcommand from the word used to invoke it, e.g.,
```
(defmain (foo (create-foo "create")) ...)
(defmain (bar (create-bar "create")) ...)
```
In any case, the documentation ought to say something about this.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.