mirror of
https://github.com/ldericher/fftcgtool
synced 2025-01-23 10:13:01 +00:00
rename commands
This commit is contained in:
parent
eea92bf5f1
commit
336fb4dca5
7 changed files with 26 additions and 26 deletions
|
@ -4,7 +4,7 @@
|
|||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/out" />
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="Pipenv (fftcgtool_v2)" jdkType="Python SDK" />
|
||||
<orderEntry type="jdk" jdkName="Pipenv (fftcgtool)" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Pipenv (fftcgtool_v2)" project-jdk-type="Python SDK" />
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Pipenv (fftcgtool)" project-jdk-type="Python SDK" />
|
||||
<component name="PythonCompatibilityInspectionAdvertiser">
|
||||
<option name="version" value="3" />
|
||||
</component>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/fftcgtool_v2.iml" filepath="$PROJECT_DIR$/.idea/fftcgtool_v2.iml" />
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/fftcgtool.iml" filepath="$PROJECT_DIR$/.idea/fftcgtool.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
|
@ -1,6 +1,6 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="deck cmd" type="PythonConfigurationType" factoryName="Python">
|
||||
<module name="fftcgtool_v2" />
|
||||
<configuration default="false" name="ffdecks cmd" type="PythonConfigurationType" factoryName="Python">
|
||||
<module name="fftcgtool" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="PARENT_ENVS" value="true" />
|
||||
<envs>
|
||||
|
@ -11,8 +11,8 @@
|
|||
<option name="IS_MODULE_SDK" value="true" />
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/main.py" />
|
||||
<option name="PARAMETERS" value="-v deck 6551765862318080" />
|
||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/fftcgtool.py" />
|
||||
<option name="PARAMETERS" value="-v ffdecks 6551765862318080" />
|
||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||
<option name="EMULATE_TERMINAL" value="false" />
|
||||
<option name="MODULE_MODE" value="false" />
|
|
@ -1,6 +1,6 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="opus cmd" type="PythonConfigurationType" factoryName="Python">
|
||||
<module name="fftcgtool_v2" />
|
||||
<configuration default="false" name="opuses cmd" type="PythonConfigurationType" factoryName="Python">
|
||||
<module name="fftcgtool" />
|
||||
<option name="INTERPRETER_OPTIONS" value="" />
|
||||
<option name="PARENT_ENVS" value="true" />
|
||||
<envs>
|
||||
|
@ -11,8 +11,8 @@
|
|||
<option name="IS_MODULE_SDK" value="true" />
|
||||
<option name="ADD_CONTENT_ROOTS" value="true" />
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/main.py" />
|
||||
<option name="PARAMETERS" value="-v opus promo" />
|
||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/fftcgtool.py" />
|
||||
<option name="PARAMETERS" value="-v opuses promo" />
|
||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||
<option name="EMULATE_TERMINAL" value="false" />
|
||||
<option name="MODULE_MODE" value="false" />
|
|
@ -29,4 +29,4 @@ RUN set -ex; \
|
|||
|
||||
COPY . .
|
||||
|
||||
ENTRYPOINT ["pipenv", "run", "./main.py"]
|
||||
ENTRYPOINT ["pipenv", "run", "./fftcgtool.py"]
|
||||
|
|
|
@ -62,8 +62,8 @@ def main() -> None:
|
|||
"-l", "--language",
|
||||
type=fftcg.Language,
|
||||
default="en",
|
||||
metavar="LANGUAGE",
|
||||
help="lang",
|
||||
metavar="LANG",
|
||||
help="language for imported objects",
|
||||
)
|
||||
|
||||
subparsers = parser.add_subparsers(
|
||||
|
@ -74,16 +74,16 @@ def main() -> None:
|
|||
)
|
||||
|
||||
# "opus" subcommand
|
||||
opus_parser = subparsers.add_parser(
|
||||
"opus",
|
||||
description="Imports an Opus from the square API and creates its elemental decks as JSON files.",
|
||||
opuses_parser = subparsers.add_parser(
|
||||
"opuses",
|
||||
description="Imports Opuses from the square API and creates its elemental decks as JSON files.",
|
||||
)
|
||||
|
||||
opus_parser.set_defaults(
|
||||
opuses_parser.set_defaults(
|
||||
func=opus_decks
|
||||
)
|
||||
|
||||
opus_parser.add_argument(
|
||||
opuses_parser.add_argument(
|
||||
"opus_ids",
|
||||
type=str,
|
||||
nargs="+",
|
||||
|
@ -91,7 +91,7 @@ def main() -> None:
|
|||
help="the Opuses to import",
|
||||
)
|
||||
|
||||
opus_parser.add_argument(
|
||||
opuses_parser.add_argument(
|
||||
"-n", "--num_requests",
|
||||
type=int,
|
||||
default=20,
|
||||
|
@ -99,17 +99,17 @@ def main() -> None:
|
|||
help="maximum number of concurrent requests",
|
||||
)
|
||||
|
||||
# "deck" subcommand
|
||||
deck_parser = subparsers.add_parser(
|
||||
"deck",
|
||||
description="Imports a Deck from the ffdecks.com API and creates it as a JSON file.",
|
||||
# "ffdecks" subcommand
|
||||
ffdecks_parser = subparsers.add_parser(
|
||||
"ffdecks",
|
||||
description="Imports Decks from the ffdecks.com API and creates it as a JSON file.",
|
||||
)
|
||||
|
||||
deck_parser.set_defaults(
|
||||
ffdecks_parser.set_defaults(
|
||||
func=ffdecks_decks
|
||||
)
|
||||
|
||||
deck_parser.add_argument(
|
||||
ffdecks_parser.add_argument(
|
||||
"deck_ids",
|
||||
type=str,
|
||||
nargs="+",
|
Loading…
Reference in a new issue