Skip to content

Commit

Permalink
docs: add some docs to README. change slogan again.
Browse files Browse the repository at this point in the history
  • Loading branch information
guumaster committed Apr 14, 2020
1 parent 2a259e8 commit 07356fe
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ nfpms:
vendor: Guumaster
homepage: https://github.com/guumaster/hostctl
maintainer: guumaster <[email protected]>
description: A Dev tool to manage your hosts file like a pro
description: Your dev tool to manage /etc/hosts like a pro

brews:
- name: hostctl
github:
owner: guumaster
name: homebrew-tap
homepage: https://github.com/guumaster/hostctl
description: A Dev tool to manage your hosts file like a pro
description: Your dev tool to manage /etc/hosts like a pro
commit_author:
name: goreleaserbot
email: [email protected]
Expand All @@ -74,14 +74,14 @@ scoop:
owner: guumaster
name: hostctl
homepage: https://github.com/guumaster/hostctl
description: A Dev tool to manage your hosts file like a pro
description: Your dev tool to manage /etc/hosts like a pro
license: MIT

snapcrafts:
- id: hostctl
name: hostctl
summary: A Dev tool to manage your hosts file like a pro
description: A Dev tool to manage your hosts file like a pro.
summary: Your dev tool to manage /etc/hosts like a pro
description: Your dev tool to manage /etc/hosts like a pro.
grade: stable
confinement: strict
license: MIT
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@

# hostctl

> A Dev tool to manage your /etc/hosts file like a pro!
![Your dev tool to manage /etc/hosts like a pro!](docs/hostctl.png)

This tool gives you more control over the use of your `hosts` file. You can have multiple profiles and enable/disable as you need.
This tool gives you more control over the use of your hosts file.
You can have multiple profiles and switch them on/off as you need.


## Why?
Expand Down
20 changes: 20 additions & 0 deletions cmd/info.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package cmd

import (
"fmt"

"github.com/spf13/cobra"
)

// infoCmd represents the enable command
var infoCmd = &cobra.Command{
Use: "info",
Hidden: true,
Run: func(cmd *cobra.Command, profiles []string) {
fmt.Fprintln(cmd.OutOrStdout(), "Your dev tool to manage /etc/hosts like a pro!")
},
}

func init() {
rootCmd.AddCommand(infoCmd)
}
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var (
// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "hostctl",
Short: "A Dev tool to manage your hosts file like a pro",
Short: "Your dev tool to manage /etc/hosts like a pro",
Long: `
__ __ __ __
/ /_ ____ _____ / /_ _____ / /_ / /
Expand Down
Binary file added docs/hostctl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 07356fe

Please sign in to comment.