File: quote.go

package info (click to toggle)
golang-github-protonmail-go-autostart 0.0~git20181114.c527205-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 80 kB
  • sloc: ansic: 38; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 200 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// +build !darwin

package autostart

import (
	"strconv"
	"strings"
)

func quote(args []string) string {
	for i, v := range args {
		args[i] = strconv.Quote(v)
	}

	return strings.Join(args, " ")
}