proud-dentist-22844
11/08/2023, 4:06 PMhelp_text
strings. Are there any other help texts that do that? Would it be formatted like a markdown table?curved-television-6568
11/08/2023, 4:52 PMproud-dentist-22844
11/08/2023, 6:23 PMhelp = help_text(
f"""
Map of install scripts source files for the APK package.
This maps the script type (key) to the script source file (value).
The script types are the terms used by nFPM. Alpine linux uses the
following terms in the APKBUILD file instead:
| nFPM term | APKBUILD term |
+-------------+----------------+
| preinstall | pre-install |
| postinstall | post-install |
| preupgrade | pre-upgrade |
| postupgrade | post-upgrade |
| preremove | pre-deinstall |
| postremove | post-deinstall |
... more docs about field ...
"""
)
proud-dentist-22844
11/08/2023, 6:25 PMnfpm_apk_package(
...
scripts={
"preremove": "path/to/script",
},
)
And I’m trying to clarify that you are using the nFPM term preremove
even though the native apk term is pre-deinstall
.curved-television-6568
11/08/2023, 6:26 PM|
or +
? that way we could have a properly rendered markdown table, I think..?curved-television-6568
11/08/2023, 6:27 PMmarkdown_table()
that renders the markdown from a mapping input?curved-television-6568
11/08/2023, 6:28 PMstrutil
module..proud-dentist-22844
11/08/2023, 6:28 PMproud-dentist-22844
11/08/2023, 6:28 PMcurved-television-6568
11/08/2023, 6:29 PMbroad-processor-92400
11/08/2023, 6:56 PM