Add logging directives

This commit is contained in:
Ana Hobden 2023-07-12 13:17:46 -07:00
parent 8910100981
commit 195f007ef0
3 changed files with 17 additions and 1 deletions

6
dist/index.js vendored
View file

@ -139,6 +139,12 @@ class NixInstallerAction {
if (this.mac_root_disk !== null) {
execution_env.NIX_INSTALLER_ROOT_DISK = this.mac_root_disk;
}
if (this.logger !== null) {
execution_env.NIX_INSTALLER_LOGGER = this.logger;
}
if (this.log_directives !== null) {
execution_env.NIX_INSTALLER_LOG_DIRECTIVES = this.log_directives;
}
// TODO: Error if the user uses these on MacOS
if (this.init !== null) {
execution_env.NIX_INSTALLER_INIT = this.init;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -152,6 +152,14 @@ class NixInstallerAction {
execution_env.NIX_INSTALLER_ROOT_DISK = this.mac_root_disk
}
if (this.logger !== null) {
execution_env.NIX_INSTALLER_LOGGER = this.logger
}
if (this.log_directives !== null) {
execution_env.NIX_INSTALLER_LOG_DIRECTIVES = this.log_directives
}
// TODO: Error if the user uses these on MacOS
if (this.init !== null) {
execution_env.NIX_INSTALLER_INIT = this.init
@ -378,6 +386,8 @@ type ExecuteEnvironment = {
NIX_INSTALLER_START_DAEMON?: string
NIX_INSTALLER_NO_CONFIRM?: string
NIX_INSTALLER_EXTRA_CONF?: string
NIX_INSTALLER_LOG_DIRECTIVES?: string
NIX_INSTALLER_LOGGER?: string
}
function get_nix_platform(): string {