func Show(ctx context.Context, unit string, property properties.Property, opts Options) (string, error) {
	var args = []string{"show", "--system", unit, "--property", string(property)}
	if opts.UserMode {
		args[1] = "--user"
	}
	stdout, _, _, err := execute(ctx, args)
	stdout = strings.TrimPrefix(stdout, string(property)+"=")
	stdout = strings.TrimSuffix(stdout, "\n")
	return stdout, err
}
// Show a selected property of a unit. Accepted properties are predefined in the
// properties subpackage to guarantee properties are valid and assist code-completion.
Show a selected property of a unit. Accepted properties are predefined in the
properties subpackage to guarantee properties are valid and assist code-completion.
// Show a selected property of a unit . Accepted properties are predefined in the // properties subpackage to guarantee properties are valid and assist code - completion .
func Show(ctx context.Context, unit string, property properties.Property, opts Options) (string, error) {
	var args = []string{"show", "--system", unit, "--property", string(property)}
	if opts.UserMode {
		args[1] = "--user"
	}
	stdout, _, _, err := execute(ctx, args)
	stdout = strings.TrimPrefix(stdout, string(property)+"=")
	stdout = strings.TrimSuffix(stdout, "\n")
	return stdout, err
}
func Show ( ctx context . Context , unit string , property properties . Property , opts Options ) ( string , error ) { var args = [ ] string { " " , " " , unit , " " , string ( property ) } if opts . UserMode { args [ 1 ] = " " } stdout , _ , _ , err := execute ( ctx , args ) stdout = strings . TrimPrefix ( stdout , string ( property ) + " " ) stdout = strings . TrimSuffix ( stdout , " \n " ) return stdout , err }
Show a selected property of a unit.
Show a selected property of a unit .