inLimbo
TUI Music Player that keeps you in Limbo.
 
Loading...
Searching...
No Matches
arg-handler.hpp File Reference
#include "./cmd-line-args.hpp"
#include "dirsort/songmap.hpp"
#include <filesystem>
#include <iostream>
#include <string_view>
#include <unordered_map>

Go to the source code of this file.

Classes

struct  SongTreeState
 
class  ColorManager
 Provides utilities for managing console colors. More...
 
class  ArgumentHandler
 Handles processing of command-line arguments and executes corresponding actions. More...
 
struct  ArgumentHandler::Paths
 Represents essential application paths. More...
 

Enumerations

enum class  ConsoleColor {
  Reset , Green , Blue , Yellow ,
  Red , Cyan , Magenta
}
 Represents ANSI console colors for colored output. More...
 

Variables

constexpr const char * DBUS_SERVICE_NAME
 DBus service name used by inLimbo.
 
constexpr const char * VERSION_FILE_NAME = "VERSION"
 
constexpr const char * REPOSITORY_URL = "https://github.com/nots1dd/inLimbo"
 
bool shouldRunApp
 Indicates if the application should proceed to run after handling arguments.
 
bool parseSongTree = false
 

Enumeration Type Documentation

◆ ConsoleColor

enum class ConsoleColor
strong

Represents ANSI console colors for colored output.

Enumerator
Reset 

Resets the console color to default.

Green 

Green color code.

Blue 

Blue color code.

Yellow 

Yellow color code.

Red 

Red color code.

Cyan 

Cyan color code.

Magenta 

Magenta color code.

Variable Documentation

◆ DBUS_SERVICE_NAME

const char* DBUS_SERVICE_NAME
constexpr
Initial value:
=
"org.mpris.MediaPlayer2.inLimbo"

DBus service name used by inLimbo.

◆ parseSongTree

bool parseSongTree = false

◆ REPOSITORY_URL

const char* REPOSITORY_URL = "https://github.com/nots1dd/inLimbo"
constexpr

◆ shouldRunApp

bool shouldRunApp
Initial value:
=
false

Indicates if the application should proceed to run after handling arguments.

◆ VERSION_FILE_NAME

const char* VERSION_FILE_NAME = "VERSION"
constexpr