### TinyStruct CLI Dispatcher Commands Source: https://tinystruct.org/ Use the dispatcher binary to interact with the framework via command line, including version checks and help documentation. ```bash $ bin/dispatcher --version _/ ' _ _/ _ _ _/ / / /) (/ _) / / (/ ( / 1.7.25 / $ bin/dispatcher --help Usage: bin/dispatcher COMMAND [OPTIONS] Commands: download Download a resource from other servers exec To execute native command(s) generate POJO object generator install Install a package open Start a default browser to open the specific URL say Output words set Set system property sql-execute Executes the given SQL statement, which may be an INSERT, UPDATE, DELETE, or DDL statement sql-query Executes the given SQL statement, which returns a single ResultSet object ``` -------------------------------- ### Define a TinyStruct Application Source: https://tinystruct.org/ Create a class extending AbstractApplication to define actions accessible via the framework. Use the @Action annotation to map methods to specific endpoints or commands. ```java package com.example; import org.tinystruct.AbstractApplication; import org.tinystruct.data.component.Builder; import org.tinystruct.data.component.Builders; import org.tinystruct.system.annotation.Action; public class HelloApp extends AbstractApplication { @Action("hello") public String hello() { return "Hello, World!"; } @Action("user") public Builder getUser(String id) { // userService.findById(id); return new Builder(); } @Action("users") public Builders getUsers() { // userService.findAll(); return new Builders(); } @Override public void init() { this.setTemplateRequired(false); } @Override public String version() { return "1.0"; } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.