Skip to content

Commit

Permalink
Merge pull request #17 from harakeishi/change/packagename
Browse files Browse the repository at this point in the history
Change Package name
  • Loading branch information
harakeishi committed Feb 1, 2022
2 parents 082ad27 + 61d96c4 commit 4c9d43b
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 15 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
![logo](logo.png)


"whereis" is Displays management information for IPs associated with the domain.
"whris" is Displays management information for IPs associated with the domain.

[![GitHub release](https://img.shields.io/github/release/harakeishi/whereis.svg)](https://github.com/harakeishi/whereis/releases)[![Go Report Card](https://goreportcard.com/badge/github.com/harakeishi/whereis)](https://goreportcard.com/report/github.com/harakeishi/whereis)
[![GitHub release](https://img.shields.io/github/release/harakeishi/whris.svg)](https://github.com/harakeishi/whris/releases)[![Go Report Card](https://goreportcard.com/badge/github.com/harakeishi/whris)](https://goreportcard.com/report/github.com/harakeishi/whris)
# Table of Contents
- [Table of Contents](#table-of-contents)
- [DEMO](#demo)
- [Installation](#installation)
- [Usage](#usage)
Expand All @@ -13,7 +14,7 @@
# DEMO

```bash
$ whereis exmple.com
$ whris exmple.com
Target domain:exmple.com
Target ip :67.210.233.131

Expand All @@ -24,7 +25,7 @@ country :
```

```bash
$ whereis yaserarenai.com
$ whris yaserarenai.com
Target domain:yaserarenai.com
Target ip :163.44.185.212

Expand All @@ -36,17 +37,17 @@ country :JP
# Installation

```bash
$ go install github.com/harakeishi/whereis@latest
$ go install github.com/harakeishi/whris@latest
```

# Usage

If you want to know the administrator of the IP associated with the domain, type `whereis [target]`.
If you want to know the administrator of the IP associated with the domain, type `whris [target]`.

You will then see the target domain and IP, and the administrator information for that IP (administrator name, network name, range of IPs to be managed, and country).

```bash
$ whereis yaserarenai.com
$ whris yaserarenai.com
Target domain:yaserarenai.com
Target ip :163.44.185.212

Expand All @@ -61,7 +62,7 @@ If you want to see more details, use the `-v` option.
Then you will be able to see the higher level network administrator information.

```bash
$ whereis yaserarenai.com -v
$ whris yaserarenai.com -v
Target domain:yaserarenai.com
Target ip :163.44.185.212

Expand Down
10 changes: 5 additions & 5 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ import (
"fmt"
"os"

Whereis "github.com/harakeishi/whereis/whereis"
whris "github.com/harakeishi/whris/whris"
"github.com/spf13/cobra"
)

var rootCmd = &cobra.Command{
Use: "whereis",
Short: "`whereis` is Displays management information for IPs associated with the domain.",
Long: `"whereis" outputs the target domain and IP from the input domain, as well as the administrator information for that IP (administrator name, network name, range of IPs to be managed, and country name).`,
Use: "whris",
Short: "`whris` is Displays management information for IPs associated with the domain.",
Long: `"whris" outputs the target domain and IP from the input domain, as well as the administrator information for that IP (administrator name, network name, range of IPs to be managed, and country name).`,
RunE: func(cmd *cobra.Command, args []string) error {
domain := args[0]
v, err := cmd.Flags().GetBool("verbose")
if err != nil {
fmt.Println(err)
os.Exit(1)
}
if err := Whereis.Resolve(domain, v); err != nil {
if err := whris.Resolve(domain, v); err != nil {
fmt.Println(err)
os.Exit(1)
}
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
module github.com/harakeishi/whereis
module github.com/harakeishi/whris

go 1.13

require (
github.com/harakeishi/whereis v0.1.8
github.com/likexian/whois v1.12.4
github.com/spf13/cobra v1.3.0
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5m
github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0=
github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM=
github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
github.com/harakeishi/whereis v0.1.8 h1:Vhad0RQZazyi5xIZI+ZsUoC2Ze7Puk+am7E6F2frlnc=
github.com/harakeishi/whereis v0.1.8/go.mod h1:e3qHmThbE9TfOXEzPE/bnK7dS8Z7FiRK5+yksHtI1Eg=
github.com/hashicorp/consul/api v1.11.0/go.mod h1:XjsvQN+RJGWI2TWy1/kqaE16HrR2J/FWgkYjdZQsX9M=
github.com/hashicorp/consul/sdk v0.8.0/go.mod h1:GBvyrGALthsZObzUGsfgHZQDXjg4lOjagTIwIR1vPms=
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
Expand Down
Binary file modified logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion whereis/whereis.go → whris/whereis.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package whereis
package whris

import (
"fmt"
Expand Down

0 comments on commit 4c9d43b

Please sign in to comment.