Skip to content

Can --transform support to pass args ? #1691

Description

@yjhmelody

It seems there is no way to pass args to control the behaviors of transform hooks. Has any plan to support it ? Or any other instead way to do it.

Activity

  1. dcodeIO commented on Feb 19, 2021

    @dcodeIO
    Member

    If there is a need for it, perhaps we can add it. Maybe something along the lines of --transform path/to/transform?arg1=1&arg2=2?

  2. yjhmelody commented on Feb 22, 2021

    @yjhmelody
    ContributorAuthor

    Further, it may be better if we can get some args passed to asc.

  3. jtenner commented on Feb 22, 2021

    @jtenner
    Contributor

    Is it possible to obtain what --use flags were passed to the compiler? :)

  4. yjhmelody commented on Feb 22, 2021

    @yjhmelody
    ContributorAuthor

    If there is a need for it, perhaps we can add it. Maybe something along the lines of --transform path/to/transform?arg1=1&arg2=2?

    It's a good idea. And transform hook also need to know asc's args.

  5. willemneal commented on Mar 17, 2021

    @willemneal
    Contributor

    Yeah I think that passing the CLI args to the transform is all you need. Since you'd get the extra args unknown to the normal CLI.

  6. yjhmelody commented on Jul 7, 2022

    @yjhmelody
    ContributorAuthor

    @dcodeIO Do you have some ideas about this features?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions