Closed
Description
This issue is to discuss two topics:
- Naming for the
gp rebuild
command. - The exact behaviours exposed.
Naming options
gp rebuild
gp build
gp validate
Current naming:
command | Description |
---|---|
gp rebuild |
Runs: before + init + command . |
gp rebuild --from="prebuild" |
Runs: before + command |
gp rebuild --prebuild |
Runs: before + init |
Option 1: As / from semantics
command | Description |
---|---|
gp rebuild |
Runs: before + init + command . |
gp rebuild --from="prebuild" / gp rebuild --from-prebuild |
Runs: before + command |
gp rebuild --as="prebuild" / gp rebuild --as-prebuild |
Runs: before + init |
Option 2: Explicit task naming
command | Description |
---|---|
gp rebuild (implicit gp rebuild -bic ) |
Runs: before + init + command . |
gp rebuild --before -command / gp rebuild -bc |
Runs: before + command |
gp rebuild --before -init / gp rebuild -bi |
Runs: before + init |
Option 3: Giving the task grouping phase names
command | Description |
---|---|
gp rebuild (implicit: --phase="full" ) |
Runs: before + init + command - Full (not prebuilt) start |
gp rebuild --phase="reboot" |
Runs: before + command - Snapshot, restarts, from prebuild start |
gp rebuild --phase="preparation" |
Runs: before + init - Emulates a prebuild |
Option 4: Nest under validate namespace
gp configure init
=> Alias + movegp init
gp configure validate
=> Alias + movegp rebuild
Or, as this applies to workspace configuration...
gp workspace init
=> Movegp init
gp workspace validate
=> The currentgp rebuild
gp workspace lint
=> The lint aspect ofgp rebuild