Skip to content

Feature request: make git_sitrep() more digestible #1714

Closed
@ijlyttle

Description

@ijlyttle

I find git_sitrep() to be an immensely useful function. However, it does provide a lot of information at once.

When you're just getting set up, it might be nice to get the status of just one part at a time. I think it could be interesting to provide some filtering options, e.g.:

git_sitrep("global", "git")
── Global git config 
• Name: 'Ian Lyttle'
• Email: 'ijlyttle@me.com'
• Global (user-level) gitignore file: '~/.gitignore'
• Vaccinated: TRUE
• Default Git protocol: 'https'
• Default initial branch name: 'main'

Would you consider a PR where:

  • the function could look something like:

    git_sitrep <- function(scope = c("global", "project"), tool = c("git", "github")) {
      scope <- rlang::arg_match(scope, multiple = TRUE)
      tool <- rlang::arg_match(tool, multiple = TRUE)
      # rest of the owl
    }
  • the output could use cli::cli_h3() headers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions