readme

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReadmeCmd = &cobra.Command{
	Use:   "readme",
	Short: "Generates a readme for the project",
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Fprintf(os.Stdout, "# %s\n\n", utils.ProjectName)
		fmt.Fprintf(os.Stdout, "_%s_\n\n", utils.ProjectDescription)
		fmt.Fprintf(os.Stdout, "## Installing\n\n")
		fmt.Fprintf(os.Stdout, "```\n")
		fmt.Fprintln(os.Stdout, `LATEST=$(curl -sI https://github.com/jasondellaluce/synchro/releases/latest | awk '/location: /{gsub("\r","",$2);split($2,v,"/");print substr(v[8],2)}')`)
		fmt.Fprintln(os.Stdout, `curl --fail -LS "https://github.com/jasondellaluce/synchro/releases/download/v${LATEST}/synchro_${LATEST}_linux_amd64.tar.gz" | tar -xz`)
		fmt.Fprintln(os.Stdout, `sudo install -o root -g root -m 0755 synchro /usr/local/bin/synchro`)
		fmt.Fprintf(os.Stdout, "```\n\n")
		fmt.Fprintf(os.Stdout, "#")
		explain.ExplainMarkersCmd.Run(cmd, args)
		fmt.Fprintf(os.Stdout, "\n#")
		explain.ExplainConflictsCmd.Run(cmd, args)
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL