about summary refs log tree commit diff stats
path: root/templates/c/docs/TODO.1.md
blob: e14fec511d00ef6aad03fc625fa97d613294b037 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
% FUPDATE(1) fupdate 1.0.0
% Benedikt Peetz
% May 2023

# NAME

fupdate - updates your flake, while checking for common mistakes

# SYNOPSIS

**fupdate** list of \[*flake*|*\<some word>*|*--help*|*-h*\]

# DESCRIPTION

Argument can be stacked, this makes it possible to specify multiple targets to be updated in succession. See the Examples section for further details.

No argument or *flake*
: **fupdate**, when executed without arguments or with *flake*, will update your *flake.lock*, check for duplicate flake inputs, i.e., an input has an input declared, which you have also declared as input, and will run a script called *update.sh*, if you allow it.
The allowance for the script is asked, when you run **fupdate** and the found script is not yet allowed. Furthermore, the allowance is based on the concrete sha256 hash of the script, so any changes will require another allowance.

**\<some word>** as argument
: If the executable **update-\<some word>** is reachable thought the PATH variable, than this is run. Otherwise, the program will exit.

# OPTIONS

**--help**, **-h**
: Displays a help message and exit.

**--version**, **-v**
: Displays the software version and exit.

# EXAMPLES

**fupdate** or **fupdate flake**
: Updates your *flake.lock*. See the Description section for further details.

**fupdate sys**
: Run the executable **update-sys**, if it exists. See the Description section for further details.

**fupdate flake sys docs**
: First updates your flake, then, if the command succeeded, runs **update-sys**, afterweich **update-docs** is run.

# FILES

*update.sh*
: This is supposed to be a shell script located in your flake base directory, i.e., the directory which contains both a *flake.nix* and a *flake.lock* file.

*~/.local/share/flake-update/*
: **fupdate** will store the hashes to the allowed *update.sh* files here.

# BUGS

Report bugs to <https://codeberg.org/soispha/flake_update/issues>.

# COPYRIGHT

Copyright (C) 2023  Benedikt Peetz

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.