inventorymgr/users.py
def create_user_command(**args: Any) -> None:
    """CLI command to create a new user."""
    args["password"] = generate_password_hash(args["password"])
    db.session.add(User(**args))
    db.session.commit()
    click.echo("Created user {}".format(args["username"]))
CLI command to create a new user.
CLI command to create a new user.
CLI command to create a new user .
def create_user_command(**args: Any) -> None:
    args["password"] = generate_password_hash(args["password"])
    db.session.add(User(**args))
    db.session.commit()
    click.echo("Created user {}".format(args["username"]))
def create_user_command ( ** args : Any ) -> None : args [ "password" ] = generate_password_hash ( args [ "password" ] ) db . session . add ( User ( ** args ) ) db . session . commit ( ) click . echo ( "Created user {}" . format ( args [ "username" ] ) )
CLI command to create a new user.
CLI command to create a new user .
"""CLI command to create a new user."""
args
Any