Giter VIP home page Giter VIP logo

rps's People

Contributors

g0dzillaa avatar gonuit avatar kamilklyta avatar udiedrichsen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rps's Issues

Multiple commands

Hey there! Great library.

Can you define multiple commands to be run within the same keyword?

scripts:
   run:
      "fvm flutter pub clean"
      "fvm flutter pub get"
      "fvm flutter pub run build_runner watch --delete-conflicting-outputs"

Because otherwise we have to do the following which is really not ideal:

scripts:
   run: "fvm flutter pub clean && fvm flutter pub get && fvm flutter pub run build_runner watch --delete-conflicting-outputs"

Duplicated `version` outout

For some reason on run it on windows as rps --version the output is duplicated:

image

Environment

Dart SDK version: 2.14.4 (stable) (Wed Oct 13 11:11:32 2021 +0200) on "windows_x64"

Flutter 2.5.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 18116933e7 (4 months ago) • 2021-10-15 10:46:35 -0700
Engine • revision d3ea636dc5
Tools • Dart 2.14.4

Not working with Dart 3+

Getting rps as globally activated doesn't support Dart 3.0.0-312.0.dev, try: dart pub global activate rps

Terminal keeps busy after running command

Hello, thanks for the great idea and package. I'm trying to run the rps command on the Macbook M1 machine. Commands run successfully but the terminal keeps showing a result message. I'm not able to run a new command without ctrl+c.

scripts:
   # run is a default script. To use it, simply type
   # in the command line: "rps" - that's all!
   run: "flutter run -t lib/main.dart --flavor development"
   # you can define more commands like this: "rps gen"
   gen: "flutter pub run build_runner watch --delete-conflicting-outputs"
   build:
      android:
         apk-dev: "flutter build apk --dart-define FLAVOR=\"development\""
      ios:
         ipa-dev: "flutter build ipa --export-method ad-hoc --dart-define FLAVOR=\"development\""

I'm running rps gen

❯ rps gen
> gen
$ flutter pub run build_runner watch --delete-conflicting-outputs

And then the terminal keeps stuck as below

Screen Shot 2022-07-20 at 13 26 31

This works as expected

> flutter pub run build_runner build --delete-conflicting-outputs

Missing script error

The readme shows script labels intended after run:

scripts:
   # run is a default script. To use it, simply type
   # in the command line: "rps" - that's all!
   run: "flutter run -t lib/main_development.dart --flavor development"
      # you can define more commands like this: "rps gen"
      gen: "flutter pub run build_runner watch --delete-conflicting-outputs"

but this results in a missing script error.

Being not super familiar with yaml syntax I didn't see the problem and couldn't figure it out until I noticed in this project's pubspec.yaml, the test: label is not indented beyond run:.

rps gen not working

I'm trying to run rps gen as it's specified on the documentation but i'm receiving an error.

juan@juan-hp:~/adguard_home_manager$ rps gen
Error! Missing script for: "gen".

I tried running rps run <my command> and it worked so maybe rps gen was working but for some reason it throwed that error.

Failed to load dynamic library

I have encountered an error but not sure related with your repo so this was the error
** Invalid argument(s): Failed to load dynamic library 'C:\Users\legol\AppData\Local\Pub\Cache\hosted\pub.dev\rps-0.6.4\lib\native\rps.dll': error code 126
#0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:43)
#1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12)
#2 execute (package:rps/bindings/execute.dart:30:32)

#3 RunCommand.run (package:rps/commands/run_command.dart:35:22)

#4 main (file:///C:/Users/legol/AppData/Local/Pub/Cache/hosted/pub.dev/rps-0.6.4/bin/rps.dart:38:26)

** I searched stackoverflow to find a solution but I really didn't grasp it to solve my problem because there was one of them that tried to communicate with c++ so it was not what I looking for.

Amazing Tool & Feedback for nested scripts

I had been looking for something like this. Currently, I am using npm, but I just found this tool and I will be making my switch right now. Thank you for sharing this.

I do have feedback and would love to know what you think about this:

My Scenario

  build:
    $script: echo "Building Both IOS and Android APPS"
    ios: "Building just IOS"
    android: "Building just ANDROID"

With the above config, I would like to sometimes just run rps build and other times I would like to run rps build ios
Is something like this possible?

As of today, I could potentially just do something like this, which would be very much like the npm scripts. but was just wondering if there is a way to nest as well.

  build: echo "Building Android and IOS"
  build:ios: echo "Building IOS"
  build:android: echo "Building Android"

Thank you

[Question] Is it possible to pass command as an argument?

I am aware that I can pass arguments as mentioned in the docs like:

rps gen
# you can also provide additional arguments
rps gen --verbose

However, I want a string to be passed (actually, an argument).

This is what I am trying to do:

package: cd packages && very_good create flutter_package <name> && cd ..

Here I am not sure if it is possible to pass the from rps like rps package <name>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.