Skip to content

Review naming + use-cases provided by gp rebuild #16389

Closed
@loujaybee

Description

@loujaybee

This issue is to discuss two topics:

  1. Naming for the gp rebuild command.
  2. The exact behaviours exposed.

Naming options

  1. gp rebuild
  2. gp build
  3. 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 + move gp init
  • gp configure validate => Alias + move gp rebuild

Or, as this applies to workspace configuration...

  • gp workspace init => Move gp init
  • gp workspace validate => The current gp rebuild
  • gp workspace lint=> The lint aspect of gp rebuild

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions