Skip to content

Commit

Permalink
fix: dont show internal variables in env:list
Browse files Browse the repository at this point in the history
  • Loading branch information
Skn0tt committed Nov 29, 2023
1 parent ba81854 commit 3f720b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/commands/env/env-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ export const envList = async (options: OptionValues, command: BaseCommand) => {

// filter out general sources
environment = Object.fromEntries(
// @ts-expect-error TS(2571) FIXME: Object is of type 'unknown'.
Object.entries(environment).filter(([, variable]) => variable.sources[0] !== 'general'),
Object.entries(environment).filter(
// @ts-expect-error TS(2571) FIXME: Object is of type 'unknown'.
([, variable]) => variable.sources[0] !== 'general' && variable.sources[0] !== 'internal',
),
)

// Return json response for piping commands
Expand Down

0 comments on commit 3f720b7

Please sign in to comment.