1TOML-ADAPT(1)                    User Commands                   TOML-ADAPT(1)
2
3
4

NAME

6       toml-adapt - adapt TOML files
7

SYNOPSIS

9       toml-adapt   [-h]   [-path PATH]   [-a {change,add,remove}]  [-dep DEP]
10       [-ver VER]
11

DESCRIPTION

13       This is a very simple package for manipulating toml format files.  This
14       is  still  a work in progress.  Recent version of this package supports
15       the manipulation of dependencies that are included in toml files.
16

OPTIONS

18       -h, --help
19              Show a help message and exit
20
21       -path PATH
22              Path to the .toml file
23
24       -a {change,add,remove}
25              Select action
26
27       -dep DEP
28              Dependency name
29
30       -ver VER
31              Version of dependency
32

EXAMPLES

34       Change dependency
35
36              toml-adapt -path pyproject.toml -a change -dep niaclass -ver 0.1.0
37
38       Add dependency
39
40              toml-adapt -path pyproject.toml -a add -dep niaclass -ver 0.1.0
41
42       Remove dependency
43
44              toml-adapt -path pyproject.toml -a remove -dep niaclass -ver 0.1.0
45
46   OTHER EXAMPLES
47       Change all existing dependencies in toml file
48
49              toml-adapt -path pyproject.toml -a change -dep ALL -ver X
50              X represents a *
51
52   HOW TO USE IT IN SPEC FILES?
53              %prep
54              ...
55              # Make dependencies consistent with Fedora dependencies
56              toml-adapt -path pyproject.toml -a change -dep ALL -ver X
57
58
59
60                                   June 2021                     TOML-ADAPT(1)
Impressum