Skip to content

Add new env mode - ref #204

@kindermax

Description

@kindermax

Example:

commands:
   show-users:
     cmd: cat users.txt
   
   grant-access-all:
     env:
       ADMINS: 
         ref: show-users

We can mimic this behavior like this:

commands:
   show-users:
     cmd: cat users.txt
   
   grant-access-all:
     env:
       ADMINS: 
         sh: lets show-users

and while this does not require complex validations, it is a bit slower since requires to start new instance of lets

Validate that:

  • no circular deps created
    • for example command declares env var with ref to itself
    • another example - two commands a and b declares envs that a:env:B depends on b and b:env:A depends on a
  • if command uses global env that depends on the command itself
  • probably do not implement mode: ref for global env in first iteration because it can be hard to deal with circular calls
  • something else ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions