Add status buildinfo (#10896)

This can be used to get some information on how fish was built - the
version, the build system, the operating system and architecture, the
features.
This commit is contained in:
Fabian Boehm
2024-12-29 13:37:28 +01:00
committed by GitHub
parent b8df9648f2
commit 6f9ca42a30
5 changed files with 72 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ Synopsis
status job-control CONTROL_TYPE
status features
status test-feature FEATURE
status buildinfo
Description
-----------
@@ -97,6 +98,10 @@ The following operations (subcommands) are available:
**test-feature** *FEATURE*
Returns 0 when FEATURE is enabled, 1 if it is disabled, and 2 if it is not recognized.
**buildinfo**
This prints information on how fish was build - which architecture, which build system or profile was used, etc.
This is mainly useful for debugging.
Notes
-----