jaredpalmer / jaredpalmer/backpack

How to pass args/params when running backpack ?

Open
#65 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.4k
Forks
164
PR merge metrics
No merged PRs in 30d

Description

Hello I would like to run my backpack application with a specific arg..

something like this:

`./node_modules/.bin/backpack hello`
or
`yarn dev hello`

the goal is to check the argument like this:
`const param = process.argv[2]`

and work with that variable.

Is there a way to do that with backpack ?

kind regards,
Joao.

Contributor guide

Open the contributing guide

Research direction

Start with the ./node_modules/.bin/backpack and yarn dev entry points, then check how the requested hello argument is forwarded to process.argv[2]. Done means determining whether the argument already reaches the application and documenting or implementing the expected invocation if it does not.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.