Skip to content

Commit

Permalink
refactor(config): remove if-env from config to make access to args ea…
Browse files Browse the repository at this point in the history
…sier
  • Loading branch information
narekhovhannisyan committed Jul 17, 2024
1 parent 0fcd991 commit 27cc830
Showing 1 changed file with 30 additions and 32 deletions.
62 changes: 30 additions & 32 deletions src/if-env/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,34 @@ import {STRINGS} from '../../common/config';
const {DISCLAIMER_MESSAGE} = STRINGS;

export const CONFIG = {
IF_ENV: {
ARGS: {
manifest: {
type: String,
optional: true,
alias: 'm',
description: '[path to the manifest file]',
},
install: {
type: Boolean,
optional: true,
alias: 'i',
description: '[command to install package.json]',
},
cwd: {
type: Boolean,
optional: true,
alias: 'c',
description:
'[command to generate the package.json in the command working directory]',
},
} as ArgumentConfig<IFEnvArgs>,
HELP: {
helpArg: 'help',
headerContentSections: [
{header: 'Impact Framework', content: 'IF-Env Helpful keywords:'},
],
footerContentSections: [
{header: 'Green Software Foundation', content: DISCLAIMER_MESSAGE},
],
} as ParseOptions<any>,
},
ARGS: {
manifest: {
type: String,
optional: true,
alias: 'm',
description: '[path to the manifest file]',
},
install: {
type: Boolean,
optional: true,
alias: 'i',
description: '[command to install package.json]',
},
cwd: {
type: Boolean,
optional: true,
alias: 'c',
description:
'[command to generate the package.json in the command working directory]',
},
} as ArgumentConfig<IFEnvArgs>,
HELP: {
helpArg: 'help',
headerContentSections: [
{header: 'Impact Framework', content: 'IF-Env Helpful keywords:'},
],
footerContentSections: [
{header: 'Green Software Foundation', content: DISCLAIMER_MESSAGE},
],
} as ParseOptions<any>,
};

0 comments on commit 27cc830

Please sign in to comment.