8000 Print os.Args prior to exiting. by ernstvonoelsen · Pull Request #102 · mintoolkit/mint · GitHub
[go: up one dir, main page]

Skip to content

Print os.Args prior to exiting.#102

Merged
kcq merged 1 commit intomintoolkit:masterfrom
ernstvonoelsen:feature-print-invocation-command-before-exit
Jan 31, 2025
Merged

Print os.Args prior to exiting.#102
kcq merged 1 commit intomintoolkit:masterfrom
ernstvonoelsen:feature-print-invocation-command-before-exit

Conversation

@ernstvonoelsen
Copy link
Contributor

Fixes-70

What

Extends the ExecutionContext struct with an Args field; upon creating new ExecutionContext reference, os.Args are persisted in the new field.

Why

suggested by @kcq

How Tested

first make test, then make build and locally executed:

$ cd dist_linux/
$ ./mint --debug
>>> debug --runtime k8s --namespace kube-system --pod storage-provisioner --target storage-provisioner --debug-image busybox@sha256:05a79c7279f71f86a2a0d05eb72fcb56ea36139150f0a75cd87e80a4272e4e39
...
cmd=debug info=exit code='-1' version='linux/amd64|Aurora|69654ca1|69654ca16416b7d389380a67914e36644ed71ca5|2025-01-30_04:20:59' location='/home/ernst/Projekte/mint/dist_linux' args='[./mint --debug]'

As can be seen, last line prints args='[./mint --debug]'.

Signed-off-by: Ernst von Oelsen <ernst.vonoelsen@tngtech.com>
@kcq
Copy link
Contributor
kcq commented Jan 31, 2025

thank you @ernstvonoelsen !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0