Skip to content

Show warning about absent config only if output is terminal (#604)#604

Open
ivnik wants to merge 1 commit intofacebookincubator:mainfrom
ivnik:export-D96483032
Open

Show warning about absent config only if output is terminal (#604)#604
ivnik wants to merge 1 commit intofacebookincubator:mainfrom
ivnik:export-D96483032

Conversation

@ivnik
Copy link
Contributor

@ivnik ivnik commented Mar 16, 2026

Summary:

Only display the warning if ttpforge's standard error is directed to a terminal (indicating user execution); otherwise, suppress the warning to avoid noise when ttpdorge executed from BAS scenarios:

WARN	No config file specified and default configuration file not found!
WARN	You probably want to run `ttpforge init`!
WARN	However, if you know what you are doing, then carry on :)

Differential Revision: D96483032

@meta-codesync
Copy link

meta-codesync bot commented Mar 16, 2026

@ivnik has exported this pull request. If you are a Meta employee, you can view the originating Diff in D96483032.

@meta-codesync meta-codesync bot changed the title Show warning about absent config only if output is terminal Show warning about absent config only if output is terminal (#604) Mar 16, 2026
ivnik added a commit to ivnik/TTPForge that referenced this pull request Mar 16, 2026
…incubator#604)

Summary:

Only display the warning if ttpforge's standard error is directed to a terminal (indicating user execution); otherwise, suppress the warning to avoid noise when ttpdorge executed from BAS scenarios:

```
WARN	No config file specified and default configuration file not found!
WARN	You probably want to run `ttpforge init`!
WARN	However, if you know what you are doing, then carry on :)
```

Differential Revision: D96483032
@ivnik ivnik force-pushed the export-D96483032 branch from b9e4d1a to 2d8295f Compare March 16, 2026 11:11
ivnik added a commit to ivnik/TTPForge that referenced this pull request Mar 16, 2026
…incubator#604)

Summary:

Only display the warning if ttpforge's standard error is directed to a terminal (indicating user execution); otherwise, suppress the warning to avoid noise when ttpdorge executed from BAS scenarios:

```
WARN	No config file specified and default configuration file not found!
WARN	You probably want to run `ttpforge init`!
WARN	However, if you know what you are doing, then carry on :)
```

Differential Revision: D96483032
@ivnik ivnik force-pushed the export-D96483032 branch from 2d8295f to c413a2a Compare March 16, 2026 11:12
ivnik added a commit to ivnik/TTPForge that referenced this pull request Mar 16, 2026
…incubator#604)

Summary:
Pull Request resolved: facebookincubator#604

Only display the warning if ttpforge's standard error is directed to a terminal (indicating user execution); otherwise, suppress the warning to avoid noise when ttpdorge executed from BAS scenarios:

```
WARN	No config file specified and default configuration file not found!
WARN	You probably want to run `ttpforge init`!
WARN	However, if you know what you are doing, then carry on :)
```

Differential Revision: D96483032
@ivnik ivnik force-pushed the export-D96483032 branch from c413a2a to b571377 Compare March 16, 2026 11:14
…incubator#604)

Summary:
Pull Request resolved: facebookincubator#604

Only display the warning if ttpforge's standard error is directed to a terminal (indicating user execution); otherwise, suppress the warning to avoid noise when ttpdorge executed from BAS scenarios:

```
WARN	No config file specified and default configuration file not found!
WARN	You probably want to run `ttpforge init`!
WARN	However, if you know what you are doing, then carry on :)
```

Differential Revision: D96483032
@ivnik ivnik force-pushed the export-D96483032 branch from b571377 to b6bd9be Compare March 16, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant