forked from reflex-dev/reflex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLI script to maintain Chakra backed components in rx namespace in ol…
…der apps (reflex-dev#2322)
- Loading branch information
Showing
3 changed files
with
135 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
"""Migrate project to rx.chakra. I.e. switch usage of rx.<component> to rx.chakra.<component>.""" | ||
|
||
import argparse | ||
|
||
if __name__ == "__main__": | ||
# parse args just for the help message (-h, etc) | ||
parser = argparse.ArgumentParser( | ||
description="Migrate project to rx.chakra. I.e. switch usage of rx.<component> to rx.chakra.<component>." | ||
) | ||
args = parser.parse_args() | ||
from reflex.utils.prerequisites import migrate_to_rx_chakra | ||
|
||
migrate_to_rx_chakra() |