feature:list

Introduction

feature:list lists the features your selected product declares in its pyproject.toml, grouped by the environment that loads them. The output is plain, so it suits scripts too.

splent feature:list
  All environments — [tool.splent.features] (3):
    - splent-io/splent_feature_auth@v1.2.7
    - splent-io/splent_feature_notes@v1.4.0
    - splent-io/splent_feature_reports

  Dev only — [tool.splent.features_dev] (1):
    - splent-io/splent_feature_fake_users@v1.0.0

  Total: 4 features

An entry with @version is pinned, and one without it is editable. Empty groups are left out.

Group Key Loaded
All environments features Always
Dev only features_dev When SPLENT_ENV=dev
Prod only features_prod When SPLENT_ENV=prod

Reference

It needs a selected product (SPLENT_APP) and takes no options.

Message What it means
No features declared in pyproject.toml. The product lists no feature yet
Error: Invalid TOML in <path>: <detail> Fix the syntax of pyproject.toml. It exits 1
Error: [tool.splent.features_dev] in <path> must be a list, got str Write the key as a list. It exits 1

See also


Back to top

splent. Distributed by an LGPL license v3. Contact us: drorganvidez@us.es