Feature request: the scripts should accept args, so it can be run in a CLI
See original GitHub issueHi!
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:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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 😢
@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 🙂