You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tagging/README.md
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -108,12 +108,14 @@ from tagging.manifests import ManifestInterface, quoted_output
108
108
classAptPackagesManifest(ManifestInterface):
109
109
@staticmethod
110
110
defmarkdown_piece(container) -> str:
111
-
return"\n".join(
112
-
["## Apt Packages", "", quoted_output(container, "apt list --installed")]
113
-
)
111
+
returnf"""\
112
+
## Apt Packages
113
+
114
+
{quoted_output(container, "apt list --installed")}"""
114
115
```
115
116
116
117
-`quoted_output` simply runs the command inside a container using `DockerRunner.run_simple_command` and wraps it to triple quotes to create a valid markdown piece.
118
+
It also adds the command which was run to the markdown piece.
117
119
-`manifests.py` contains all the manifests.
118
120
-`write_manifest.py` is a python executable which is used to create the build manifest and history line for an image.
0 commit comments