Porytiles
Loading...
Searching...
No Matches
ListTilesetsCommand Class Referencefinal

Lists tileset names in the project. More...

#include <command_list_tilesets.hpp>

Inheritance diagram for ListTilesetsCommand:
[legend]
Collaboration diagram for ListTilesetsCommand:
[legend]

Public Member Functions

 ListTilesetsCommand (CLI::App &parent_app)
 
void Run () override
 
- Public Member Functions inherited from Command
virtual ~Command ()=default
 
 Command (CLI::App &parent_app, const std::string &name, const std::string &desc, const std::string &group)
 
 Command (const Command &)=delete
 
Commandoperator= (const Command &)=delete
 
 Command (Command &&)=delete
 
Commandoperator= (Command &&)=delete
 
CLI::App & get_app () const
 

Additional Inherited Members

Detailed Description

Lists tileset names in the project.

ListTilesetsCommand provides a way to list all tilesets in a project. This is useful for scripting, getting an overview of the project, and for shell completion scripts.

The command supports filtering by management status:

  • all: Return all tilesets found in the project (default)
  • managed: Return only tilesets that have been imported/created by Porytiles
  • unmanaged: Return only tilesets not yet managed by Porytiles

CRITICAL: This command must NEVER write to stderr, as that would corrupt shell completion results. All errors are silently ignored.

Definition at line 30 of file command_list_tilesets.hpp.

Constructor & Destructor Documentation

◆ ListTilesetsCommand()

ListTilesetsCommand::ListTilesetsCommand ( CLI::App &  parent_app)
inlineexplicit

Definition at line 32 of file command_list_tilesets.hpp.

Member Function Documentation

◆ Run()

void ListTilesetsCommand::Run ( )
inlineoverridevirtual

Implements Command.

Definition at line 48 of file command_list_tilesets.hpp.


The documentation for this class was generated from the following file: