Debian Codegraph @

integrations/commander/MIGRATION.md

raw symbols SCIP
1 # Migration docs
2
3 ## @withfig/commander@1 to @fig/complete-commander@2
4
5 The first granted thing you can note is that we renamed the package to use the `@fig` namespace and a more significative name.
6
7 This is not the only change occurred because we also changed the name, the signature, the options and the effects of the `generateFigSpec` function:
8 - In v1 the main function was `generateFigSpec` while now it is named `generateCompletionSpec`
9 - In v1 you had to specify a file as the destination of the spec while in v2 the spec gets returned as a `string` from `generateCompletionSpec`.
10 - In v1 the name of the default command added to the commander program was `generateFigSpec` while in v2 it is `generate-fig-spec`