Rps 10094 show account and project information#103
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a --show-config flag to the Smartling CLI, which displays the resolved configuration (User, Account, Project, and Config File) and its source origins (env, flag, or file) before a command runs. In interactive terminals, it also prompts the user for confirmation. The projects info command was refactored to utilize this new shared logic. Review feedback highlights that the current implementation of PersistentPreRunE in subcommands like jobs and mt overrides the root command's initialization, potentially skipping logger setup and state variable assignment. Additionally, it is recommended to redirect the configuration banner to stderr to avoid polluting stdout and to make the API-based project detail fetching optional for commands that do not target a specific project.
Adds a global
--show-configflag that prints the resolved account, project, user, and config-file path to stdout before any command runs, and promptsContinue? [y/N]on an interactive terminal so operators can confirm they're targeting the right project.