Skip to content

Create UI menu for selecting top-level commands #75

@gamebits

Description

@gamebits

When team51 is run without any parameters, it outputs a list of support commands before dropping back to the command line. The user can then run team51 again with the desired command.

When no command is passed, a nicer UX might be to present the user with a selectable menu — similar to Newspack's Knife tool:

┌─────────────────────────────────────────────────────────────────┐
│                                                                 │
│                              KNIFE 🔪                           │
│                                                                 │
├────SITE CREATION───────────────│────SITE INFO───────────────────┤
│[1] Create blank Atomic site    │[21] Check Atomic job status    │
│[2] Create blank Newspack site  │[22] Get site IPs               │
│[3] Create Staging from JP      │[23] Get TXT record             │
│[4] Clone site                  │[24] Get site info              │
│[5] Custom frugal clone, p/ t/  │[25] List all Newspack sites    │
│                                │[26] Get access logs            │
├────SITE SETUP──────────────────│                                │
│[6] Install Newspack            │────SITE MANAGEMENT─────────────┤
│[7] Secure a clone              │[27] phpMyAdmin                 │
│[8] Set up Password Protected   │[28] Alias list/add/remove      │
│[9] Restrict plugin installation│[29] Site meta get/add/remove   │
│[10] Delete JP connection tokens│[30] SSL Reprovision            │
│[11] Run site QA                │[31] Update domain              │
│[12] Upload plugin              │[32] Plugin audit               │
│[13] Install private GH plugin  │[33] Set PHP version            │
│                                │[34] Set WP ver to Beta         │
├────SITE BACKUP─────────────────│[35] Update WP ver to Latest    │
│[14] Full DB backup             │[36] Downgrade WP to Previous   │
│[15] Restore DB backup          │[37] Toggle Edge Caching        │
│[16] Download frugal site export│[38] Flush Edge Cache           │
│                                │[39] Fix managed plugin/theme   │
├────CONTENT REFRESH─────────────│[40] Suspend/un-suspend site    │
│[17] Refresh from JP backup     │                                │
│[18] Refresh from custom archive│────MANAGE ALL LIVE SITES───────┤
│                                │[41] Switch Plugin Version      │
├────SITE DELETION───────────────│[42] Enable plugin auto-update  │
│[19] Delete site                │[43] Disable plugin auto-update │
│[20] do_not_delete toggle       │                                │
│                                │────QUIT────────────────────────┤
│                                │[44] Quit                       │
│                                │                                │
└─────────────────────────────────────────────────────────v1.27.0─┘
Select action: 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions