Skip to content

Commit

Permalink
feat: Add more code
Browse files Browse the repository at this point in the history
  • Loading branch information
dadav committed Feb 29, 2024
1 parent 42ad5b0 commit be15433
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 23 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
# ⭐Gorge
# Gorge

Gorge is a go implementation for [forgeapi.puppet.com](https://forgeapi.puppet.com/).

## 💎Usage
## 🌹 Installation

Via `go install`:

```bash
go install github.com/dadav/gorge@latest
```

## 💎 Usage

dummy

## 🍰Configuration
## 🍰 Configuration

dummy

## 🔑License
## 🔑 License

[Apache](./LICENSE)
21 changes: 2 additions & 19 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,8 @@ var cfgFile string
// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "gorge",
Short: "A brief description of your application",
Long: `A longer description that spans multiple lines and likely contains
examples and usage of using your application. For example:
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
// Uncomment the following line if your bare application
// has an action associated with it:
// Run: func(cmd *cobra.Command, args []string) { },
Short: "Gorge runs a puppet forge server",
Long: `You can run this tool to provide access to your puppet modules.`,
}

// Execute adds all child commands to the root command and sets flags appropriately.
Expand All @@ -53,16 +45,7 @@ func Execute() {

func init() {
cobra.OnInitialize(initConfig)

// Here you will define your flags and configuration settings.
// Cobra supports persistent flags, which, if defined here,
// will be global for your application.

rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.gorge.yaml)")

// Cobra also supports local flags, which will only run
// when this action is called directly.
rootCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
}

// initConfig reads in config file and ENV variables if set.
Expand Down

0 comments on commit be15433

Please sign in to comment.