Skip to content

cli: Allow usage without a novem.conf #170

@myme

Description

@myme

For CI workflows or other minimal systems it's not feasible to use the novem --init interactive workflow to create an initial novem.conf. The file can obviously be created manually, but that's quite user hostile.

The following should work, but doesn't: when there's no ~/.config/novem/novem.conf:

NOVEM_TOKEN=nut-this-is-not-a-token novem -p

and

novem --token nut-this-is-not-a-token -p

Example

Setting --config-path /dev/null (or just moving ~/.config/novem/novem.conf out of the way) doesn't let me list plots:

Image

The issue is in building the config. It's possible to use /v1/whoami to fill the missing username, but requires one additional server round-trip.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions