Skip to content

Conversation

Jayman2000
Copy link
Contributor

See the commit message for details.

I tested this parser using this script:

	#!/usr/bin/env bash

	run0 \
		-h --help \
		-V --version \
		   --no-ask-password \
		   --machine=CONTAINER \
		   --unit=UNIT \
		   --property=NAME=VALUE \
		   --description=TEXT \
		   --slice=SLICE \
		   --slice-inherit \
		-u USER --user=USER \
		-g GROUP --group=GROUP \
		   --nice=NICE \
		-D PATH --chdir=PATH \
		   --setenv=NAME \
		   --background=COLOR \
		   --pty \
		   --pipe \
		   --shell-prompt-prefix=PREFIX \
		hello

	run0 \
		-h --help \
		-V --version \
		   --no-ask-password \
		   --machine=CONTAINER \
		   --unit=UNIT \
		   --property=NAME=VALUE \
		   --description=TEXT \
		   --slice=SLICE \
		   --slice-inherit \
		-u USER --user=USER \
		-g GROUP --group=GROUP \
		   --nice=NICE \
		-D PATH --chdir=PATH \
		   --setenv=NAME \
		   --background=COLOR \
		   --pty \
		   --pipe \
		   --shell-prompt-prefix=PREFIX \
		-- \
		hello

	run0 -- run0 -- hello
	run0 run0 hello
	run0
	run0 -u hello hello

I was able to successfully resholve that script by running this command:

	NIX_CONFIG='extra-experimental-features = nix-command flakes' nix run <path to resholve repo>#resholve-with-packages -- <path to script> systemd hello
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.

1 participant