question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: the scripts should accept args, so it can be run in a CLI

See original GitHub issue

Hi!

I’m really liking this package, and I have a suggestion:

It would be nice, if the generate-bootsplash-assets script acccepted args after it, like:

npx generate-bootsplash-assets . brands/default icon.png 300

Or have an exported member, so it can be called in a script like:

import {generate_bootsplash_assets} from 'react-native-bootsplash'


generate_bootsplash_assets({
       projectPath: ".",
       assetsPath: "assets",
       etc...
      })

This way, it could be run in a none interactive environment like a CLI.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ssilverrcommented, Aug 19, 2020

@zoontek Sweet! Tried it out in a fresh rn project. It’s super fast! Works very well as package.json script. Thank you for your work.

I finally won’t have to patch-package my shitty solution each release 😄 Now to find the time to upgrade the ongoing project to rn 63 😢

0reactions
zoontekcommented, Aug 13, 2020

@ssilverr The new version (3.0.0) relying on the react-native CLI, is available in alpha. Please give it a try: https://github.com/zoontek/react-native-bootsplash/tree/3.0.0 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command Line Arguments for Your Python Script
In Python, we have a way to adapt the code from a command line. In this tutorial, we are going to see how...
Read more >
Use Command-line Interface (CLI) Arguments via Python's sys ...
0:00 Example Setup in VSCode1:00 Accessing Command-line Arguments via sys.argv1:45 Path of Python file is sys.argv[0] the first argument2:30 ...
Read more >
Pass command line args to npm scripts in package.json
Firstly runs npm run vumper <arg> . Whereby <arg> will be the shell argument passed via the CLI. It is referenced in the...
Read more >
Add params to brownie run · Issue #398 - GitHub
I want to run my brownie scripts without interactive mode in docker files. Specification. For example we can add args and kwargs so:...
Read more >
Build Command-Line Interfaces With Python's argparse
This module allows you to define the arguments and options that your app will require. Then argparse will take care of parsing those...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found