act/cmd
Eng Zer Jun 424fd5e02b
refactor(cmd/root): simplify parseEnvs (#2162)
Prior to this commit, `parseEnvs` accept two parameters:

  1. env []string
  2. envs map[string]string

`parseEnvs` then do a `nil` check for `env`. However, we never pass a
`nil` `env` to `parseEnvs` in `newRunCommand`.

This commit simplify the `parseEnvs` function to accept just one
`env []string` parameter and return the result as `map[string]string`
instead.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2024-01-24 03:06:31 +00:00
..
dir.go Support cache (#1770) 2023-04-28 15:57:40 +00:00
graph.go Add super-linter + fix lint issues (#650) 2021-05-03 09:52:03 -07:00
input.go feat: support offline mode (#2128) 2024-01-20 00:20:15 +00:00
list.go feat: improve list (#786) 2021-08-30 15:38:03 +00:00
notices.go Support cache (#1770) 2023-04-28 15:57:40 +00:00
platforms.go Support array expressions in runs-on (#2088) 2023-11-12 17:40:06 +00:00
root.go refactor(cmd/root): simplify parseEnvs (#2162) 2024-01-24 03:06:31 +00:00
secrets.go fix: print line after password prompt (#1014) 2022-02-25 16:47:49 +00:00