Skip to content

[FEAT] Dynamically return multiple modules #1833

@JamoCA

Description

@JamoCA

Description

Is it possible to specify multiple modules to return using the commandline without having to use a config file? For example, I'd like to return DateTime, Memory & CPUUsage in the JSON format.

This works when returning a single module:

fastfetch -s Memory --format json

But the following attempts don't work or will only return the last configured -s module:

fastfetch -s Memory -s CPUUsage --format json
fastfetch -s Memory|CPUUsage --format json
fastfetch -s Memory,CPUUsage --format json

Motivation

I'd like to use an external interface to specify modules and have those modules returned within the JSON response.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions