Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
orangekame3 committed Oct 8, 2023
1 parent a79a62c commit 91c6d9f
Show file tree
Hide file tree
Showing 9 changed files with 79 additions and 39 deletions.
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ brews:
token: "{{ .Env.TAP_GITHUB_TOKEN }}"

winget:
- name: gitfetch
- name: ghfetch
publisher: orangekame3
license: "mit"
copyright: Takafumi Miyanaga
short_description: A template for creating package using cobra.
path: manifests/orangekame3/gitfetch
path: manifests/orangekame3/ghfetch
repository:
owner: orangekame3
name: winget-pkgs
Expand Down
22 changes: 11 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# Changelog

## [v0.0.11](https://github.com/orangekame3/gitfetch/compare/v0.0.10...v0.0.11) - 2023-10-07
## [v0.0.11](https://github.com/orangekame3/ghfetch/compare/v0.0.10...v0.0.11) - 2023-10-07

## [v0.0.10](https://github.com/orangekame3/gitfetch/compare/v0.0.9...v0.0.10) - 2023-10-07
## [v0.0.10](https://github.com/orangekame3/ghfetch/compare/v0.0.9...v0.0.10) - 2023-10-07

## [v0.0.9](https://github.com/orangekame3/gitfetch/compare/v0.0.8...v0.0.9) - 2023-10-07
## [v0.0.9](https://github.com/orangekame3/ghfetch/compare/v0.0.8...v0.0.9) - 2023-10-07

## [v0.0.8](https://github.com/orangekame3/gitfetch/compare/v0.0.7...v0.0.8) - 2023-10-07
## [v0.0.8](https://github.com/orangekame3/ghfetch/compare/v0.0.7...v0.0.8) - 2023-10-07

## [v0.0.7](https://github.com/orangekame3/gitfetch/compare/v0.0.6...v0.0.7) - 2023-10-07
## [v0.0.7](https://github.com/orangekame3/ghfetch/compare/v0.0.6...v0.0.7) - 2023-10-07

## [v0.0.6](https://github.com/orangekame3/gitfetch/compare/v0.0.5...v0.0.6) - 2023-10-07
## [v0.0.6](https://github.com/orangekame3/ghfetch/compare/v0.0.5...v0.0.6) - 2023-10-07

## [v0.0.5](https://github.com/orangekame3/gitfetch/compare/v0.0.4...v0.0.5) - 2023-10-07
## [v0.0.5](https://github.com/orangekame3/ghfetch/compare/v0.0.4...v0.0.5) - 2023-10-07

## [v0.0.4](https://github.com/orangekame3/gitfetch/compare/v0.0.3...v0.0.4) - 2023-10-07
## [v0.0.4](https://github.com/orangekame3/ghfetch/compare/v0.0.3...v0.0.4) - 2023-10-07

## [v0.0.3](https://github.com/orangekame3/gitfetch/compare/v0.0.2...v0.0.3) - 2023-10-07
## [v0.0.3](https://github.com/orangekame3/ghfetch/compare/v0.0.2...v0.0.3) - 2023-10-07

## [v0.0.2](https://github.com/orangekame3/gitfetch/compare/v0.0.1...v0.0.2) - 2023-10-07
## [v0.0.2](https://github.com/orangekame3/ghfetch/compare/v0.0.1...v0.0.2) - 2023-10-07

## [v0.0.1](https://github.com/orangekame3/gitfetch/commits/v0.0.1) - 2023-10-04
## [v0.0.1](https://github.com/orangekame3/ghfetch/commits/v0.0.1) - 2023-10-04
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# gitfetch
# ghfetch

## Install

### Go

```shell
go install github.com/orangekame3/gitfetch@latest
go install github.com/orangekame3/ghfetch@latest
```

### Homebrew

```shell
brew install orangekame3/tap/gitfetch
brew install orangekame3/tap/ghfetch
```
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (

// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "gitfetch",
Use: "ghfetch",
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:
Expand Down Expand Up @@ -60,7 +60,7 @@ func init() {
// Cobra supports persistent flags, which, if defined here,
// will be global for your application.

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

// Cobra also supports local flags, which will only run
// when this action is called directly.
Expand Down
57 changes: 57 additions & 0 deletions cmd/user.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/*
Copyright © 2023 Takafumi Miyanaga <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
package cmd

import (
"fmt"

"github.com/spf13/cobra"
)

// userCmd represents the user command
var userCmd = &cobra.Command{
Use: "user",
Short: "A brief description of your command",
Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. 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.`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("user called")
},
}

func init() {
rootCmd.AddCommand(userCmd)

// Here you will define your flags and configuration settings.

// Cobra supports Persistent Flags which will work for this command
// and all subcommands, e.g.:
// userCmd.PersistentFlags().String("foo", "", "A help for foo")

// Cobra supports local flags which will only run when this command
// is called directly, e.g.:
// userCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/orangekame3/gitfetch
module github.com/orangekame3/ghfetch

go 1.21.0

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ package main
import (
"time"

"github.com/orangekame3/gitfetch/cmd"
"github.com/orangekame3/ghfetch/cmd"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions win-installer.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

BASE_URL="https://raw.githubusercontent.com/orangekame3/winget-pkgs/main/manifests/g/orangekame3/gitfetch"
FILES=("orangekame3.gitfetch.yaml" "orangekame3.gitfetch.installer.yaml" "orangekame3.gitfetch.locale.en-US.yaml")
BASE_URL="https://raw.githubusercontent.com/orangekame3/winget-pkgs/main/manifests/g/orangekame3/ghfetch"
FILES=("orangekame3.ghfetch.yaml" "orangekame3.ghfetch.installer.yaml" "orangekame3.ghfetch.locale.en-US.yaml")

mkdir -p ./tmp

Expand Down
17 changes: 0 additions & 17 deletions winget-installer.ps1

This file was deleted.

0 comments on commit 91c6d9f

Please sign in to comment.