-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixes typo for 'type' flag resolves #34 Co-authored-by: Gabriel Fosse <[email protected]> * add about command (#45) * add parameter to countries table (#47) Co-authored-by: Gabriel Fosse <[email protected]> Co-authored-by: Gabriel Fosse <[email protected]>
- Loading branch information
1 parent
5bd8916
commit eefb3af
Showing
6 changed files
with
66 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package about | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/spf13/cobra" | ||
) | ||
|
||
var aboutHeader = ` | ||
___ _ ___ ____ _ ___ | ||
/ _ \ _ __ ___ _ __ / \ / _ \ / ___| | |_ _| | ||
| | | | '_ \ / _ | '_ \ / _ \| | | | | | | | | | | ||
| |_| | |_) | __| | | |/ ___ | |_| | | |___| |___ | | | ||
\___/| .__/ \___|_| |_/_/ \_\__\_\ \____|_____|___| | ||
|_| | ||
The OpenAQ CLI is a command line interface tool to access the OpenAQ API. | ||
The source code is open source and available on github at: | ||
https://github.com/openaq/openaq-cli | ||
` | ||
|
||
var AboutCmd = &cobra.Command{ | ||
Use: "about", | ||
Short: "About the OpenAQ CLI", | ||
Args: cobra.NoArgs, | ||
Run: func(cmd *cobra.Command, args []string) { | ||
fmt.Println(aboutHeader) | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters