slimtoolkit/slim

CLI Enhancement: Ability to specify all command parameters in a json file ("command-params-file" flag)

Open

#597 aberto em 22 de out. de 2023

Ver no GitHub
 (5 comments) (1 reaction) (0 assignees)Go (673 forks)batch import
enhancementgood first issuehelp wanted

Métricas do repositório

Stars
 (17.694 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Right now each CLI command accepts a set of command parameters as separate command line flags. It's ok for adhoc use, but it's less ideal for automation. The goal for the "command-params-file" flag is to provide an ability to specify all required command-specific parameters in one JSON formatted file.

There's already a placeholder for the flag, but there's no logic to load and process the file data.

This is a good first issue for somebody already comfortable with Go and refactoring a significant amount of CLI flag processing code.

Guia do colaborador