Add LoadFileAction, Rename ActionFactoryAction->ActionFactory, Rename falyx.action.mixins->falyx.action.action_mixins, fix bug unable to parse negative numbers in CommandArgumentParser
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import asyncio
|
||||
|
||||
from falyx import Falyx
|
||||
from falyx.action import ActionFactoryAction, ChainedAction, HTTPAction, SelectionAction
|
||||
from falyx.action import ActionFactory, ChainedAction, HTTPAction, SelectionAction
|
||||
|
||||
# Selection of a post ID to fetch (just an example set)
|
||||
post_selector = SelectionAction(
|
||||
@ -24,7 +24,7 @@ async def build_post_action(post_id) -> HTTPAction:
|
||||
)
|
||||
|
||||
|
||||
post_factory = ActionFactoryAction(
|
||||
post_factory = ActionFactory(
|
||||
name="Build HTTPAction from Post ID",
|
||||
factory=build_post_action,
|
||||
inject_last_result=True,
|
||||
|
@ -29,7 +29,10 @@ flx.add_command(
|
||||
),
|
||||
arg_metadata={
|
||||
"service": "Service name",
|
||||
"region": {"help": "Deployment region", "choices": ["us-east-1", "us-west-2"]},
|
||||
"region": {
|
||||
"help": "Deployment region",
|
||||
"choices": ["us-east-1", "us-west-2", "eu-west-1"],
|
||||
},
|
||||
"verbose": {"help": "Enable verbose mode"},
|
||||
},
|
||||
tags=["deployment", "service"],
|
||||
|
Reference in New Issue
Block a user