Skip to content

Multiple commits#3582

Merged
rhc54 merged 2 commits intoopenpmix:v5.0from
rhc54:cmr50/up
Apr 21, 2025
Merged

Multiple commits#3582
rhc54 merged 2 commits intoopenpmix:v5.0from
rhc54:cmr50/up

Conversation

@rhc54
Copy link
Contributor

@rhc54 rhc54 commented Apr 21, 2025

Extend cmd line processor to deal with envar ops

PMIx supports forward/set, unset, append, and prepend of
environmental variables. However, the cmd line processor
wasn't setup to handle cmd line options for that purpose.
Extend it to provide such support.

Forward (-x) of envars can be just the envar name (to pickup
the local value and forward it), or can be envar=value to
set the envar to a specific value.

Unset (--unset) takes just the name of the envar.

Append (--append-env) takes two arguments:

  • the name of the envar, appended with a "[c]" where
    the 'c' is the character to be used as the separator
    between envar values
  • the value to be appended
    So it looks like "--append-env FOO[:] 20"

Prepend (--prepend-env) behaves exactly like append except
it prepends the value to whatever current envar value it finds

Multiple instances of any of these options may be present on
the cmd line. Each instance will have its arguments appended
to the parameter's pmix_cli_item_t's values argv-array.

Signed-off-by: Ralph Castain rhc@pmix.org
(cherry picked from commit c4694cb)

Roll version to v5.0.8

Signed-off-by: Ralph Castain rhc@pmix.org
bot:notacherrypick

rhc54 added 2 commits April 21, 2025 07:13
PMIx supports forward/set, unset, append, and prepend of
environmental variables. However, the cmd line processor
wasn't setup to handle cmd line options for that purpose.
Extend it to provide such support.

Forward (-x) of envars can be just the envar name (to pickup
the local value and forward it), or can be envar=value to
set the envar to a specific value.

Unset (--unset) takes just the name of the envar.

Append (--append-env) takes two arguments:
   * the name of the envar, appended with a "[c]" where
     the 'c' is the character to be used as the separator
     between envar values
   * the value to be appended
So it looks like "--append-env FOO[:] 20"

Prepend (--prepend-env) behaves exactly like append except
it prepends the value to whatever current envar value it finds

Multiple instances of any of these options may be present on
the cmd line. Each instance will have its arguments appended
to the parameter's pmix_cli_item_t's values argv-array.

Signed-off-by: Ralph Castain <rhc@pmix.org>
(cherry picked from commit c4694cb)
Signed-off-by: Ralph Castain <rhc@pmix.org>
@rhc54 rhc54 merged commit bc3680a into openpmix:v5.0 Apr 21, 2025
18 checks passed
@rhc54 rhc54 deleted the cmr50/up branch April 21, 2025 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant