├── .github └── workflows │ └── build.yml ├── .gitignore ├── LICENSE ├── assets ├── logo.png ├── screenshot.png ├── screenshot1.png └── sessions_list.png ├── chrono.yaml ├── cmd ├── root.go └── session.go ├── go.mod ├── go.sum ├── main.go ├── pkg ├── chrono │ ├── chrono.go │ └── session │ │ └── session.go ├── config │ └── config.go ├── event │ ├── event │ │ └── event.go │ ├── periodic │ │ └── periodic.go │ └── save │ │ └── save.go ├── repository │ └── repository.go ├── scheduler │ └── scheduler.go └── signal │ └── signal.go └── readme.md /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | # This workflow will build a golang project 2 | # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go 3 | 4 | name: Build 5 | 6 | on: 7 | push: 8 | branches: [ "dev" ] 9 | pull_request: 10 | branches: [ "dev" ] 11 | 12 | jobs: 13 | 14 | build: 15 | runs-on: ubuntu-latest 16 | steps: 17 | - uses: actions/checkout@v3 18 | 19 | - name: Set up Go 20 | uses: actions/setup-go@v3 21 | with: 22 | go-version: 1.19 23 | 24 | - name: Install libgit2 25 | run: | 26 | sudo apt update 27 | sudo apt install -y wget 28 | wget https://github.com/libgit2/libgit2/archive/refs/tags/v1.5.1.tar.gz && \ 29 | tar xzf v1.5.1.tar.gz && \ 30 | cd libgit2-1.5.1/ && \ 31 | cmake . && \ 32 | make && \ 33 | sudo make install 34 | sudo ldconfig 35 | 36 | - name: Build 37 | run: go build -v ./... 38 | 39 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hazyuun/Chrono/09b6631f73ecc171ee236f69fac4104e27f80a52/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Yuun https://github.com/hazyuun 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hazyuun/Chrono/09b6631f73ecc171ee236f69fac4104e27f80a52/assets/logo.png -------------------------------------------------------------------------------- /assets/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hazyuun/Chrono/09b6631f73ecc171ee236f69fac4104e27f80a52/assets/screenshot.png -------------------------------------------------------------------------------- /assets/screenshot1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hazyuun/Chrono/09b6631f73ecc171ee236f69fac4104e27f80a52/assets/screenshot1.png -------------------------------------------------------------------------------- /assets/sessions_list.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hazyuun/Chrono/09b6631f73ecc171ee236f69fac4104e27f80a52/assets/sessions_list.png -------------------------------------------------------------------------------- /chrono.yaml: -------------------------------------------------------------------------------- 1 | # This is a chrono.yaml example 2 | 3 | events: 4 | periodic: 5 | period: 10 6 | files: ["."] 7 | save: 8 | files: ["."] 9 | 10 | git: 11 | auto-add: true 12 | -------------------------------------------------------------------------------- /cmd/root.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "fmt" 5 | 6 | "os" 7 | 8 | "github.com/rs/zerolog" 9 | "github.com/rs/zerolog/log" 10 | "github.com/spf13/cobra" 11 | 12 | "chrono/pkg/config" 13 | "chrono/pkg/signal" 14 | ) 15 | 16 | var logFile string 17 | var repositoryPath string 18 | 19 | func setupLogger() { 20 | if logFile == "" { 21 | log.Logger = log.Output( 22 | &zerolog.ConsoleWriter{Out: os.Stderr}, 23 | ) 24 | return 25 | } 26 | 27 | f, err := os.OpenFile(logFile, os.O_CREATE|os.O_RDWR|os.O_APPEND, 0644) 28 | if err != nil { 29 | fmt.Printf("Couldn't open log file : %v", err.Error()) 30 | os.Exit(1) 31 | } 32 | 33 | log.Logger = log.Output( 34 | zerolog.MultiLevelWriter( 35 | &zerolog.ConsoleWriter{Out: os.Stderr}, 36 | f, 37 | ), 38 | ) 39 | } 40 | 41 | var rootCmd = &cobra.Command{ 42 | Use: "chrono", 43 | Short: "Chrono is a git time machine", 44 | Long: ` Chrono is a tool that automatically commits in a temporary branch 45 | in your git repository every time an event occurs (events are customizable), 46 | So that you can always rollback to a specific point in time if anything goes wrong. 47 | You can squash merge all the temporary commits into one once you are done.`, 48 | } 49 | 50 | func Run() error { 51 | return rootCmd.Execute() 52 | } 53 | 54 | func init() { 55 | signal.Init() 56 | setupLogger() 57 | 58 | cobra.OnInitialize(config.Load) 59 | rootCmd.PersistentFlags().StringVar(&logFile, "log", "", "Log file path") 60 | rootCmd.PersistentFlags().StringVarP(&repositoryPath, "repository", "r", ".", "Git repository path") 61 | 62 | rootCmd.AddCommand(sessionCmd) 63 | 64 | sessionCmd.AddCommand(sessionCreateCmd) 65 | sessionCmd.AddCommand(sessionDeleteCmd) 66 | sessionCmd.AddCommand(sessionListCmd) 67 | sessionCmd.AddCommand(sessionStartCmd) 68 | sessionCmd.AddCommand(sessionStopCmd) 69 | sessionCmd.AddCommand(sessionMergeCmd) 70 | sessionCmd.AddCommand(sessionShowCmd) 71 | } 72 | -------------------------------------------------------------------------------- /cmd/session.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "chrono/pkg/chrono" 5 | "chrono/pkg/chrono/session" 6 | "errors" 7 | 8 | "github.com/fatih/color" 9 | "github.com/rodaine/table" 10 | "github.com/rs/zerolog/log" 11 | 12 | "github.com/spf13/cobra" 13 | ) 14 | 15 | var sessionCmd = &cobra.Command{ 16 | Use: "session", 17 | Short: "Session related operations", 18 | Long: ``, 19 | } 20 | 21 | var sessionCreateCmd = &cobra.Command{ 22 | Use: "create ", 23 | Short: "Creates a new session", 24 | Long: ``, 25 | 26 | Args: func(cmd *cobra.Command, args []string) error { 27 | if len(args) < 1 { 28 | return errors.New("Please specify a session name") 29 | } 30 | 31 | return nil 32 | }, 33 | 34 | Run: func(cmd *cobra.Command, args []string) { 35 | chrono.Init(repositoryPath) 36 | session.CreateSession(args[0]) 37 | log.Info().Str("session", args[0]).Msg("Session created successfully") 38 | }, 39 | } 40 | 41 | var sessionDeleteCmd = &cobra.Command{ 42 | Use: "delete", 43 | Short: "Deletes a session", 44 | Long: ``, 45 | Run: func(cmd *cobra.Command, args []string) { 46 | chrono.Init(repositoryPath) 47 | session.DeleteSession(args[0]) 48 | log.Info().Str("session", args[0]).Msg("Session deleted successfully") 49 | }, 50 | } 51 | 52 | var sessionListCmd = &cobra.Command{ 53 | Use: "list", 54 | Short: "Lists existing sessions", 55 | Long: ``, 56 | Run: func(cmd *cobra.Command, args []string) { 57 | chrono.Init(repositoryPath) 58 | sessions := session.GetSessions() 59 | 60 | tbl := table.New("N°", "Session name", "Chrono branch", "Source Branch") 61 | 62 | tbl.WithHeaderFormatter(color.New(color.FgBlue, color.Underline, color.Bold).SprintfFunc()) 63 | tbl.WithFirstColumnFormatter(color.New(color.FgYellow, color.Bold).SprintfFunc()) 64 | tbl.WithPadding(8) 65 | 66 | i := 1 67 | for _, session := range sessions { 68 | tbl.AddRow(i, session.Name, session.Branch, session.Source) 69 | i++ 70 | } 71 | 72 | tbl.Print() 73 | }, 74 | } 75 | 76 | var sessionStartCmd = &cobra.Command{ 77 | Use: "start", 78 | Short: "Starts a session", 79 | Long: ``, 80 | 81 | Args: func(cmd *cobra.Command, args []string) error { 82 | if len(args) < 1 { 83 | return errors.New("Please specify a session name") 84 | } 85 | 86 | return nil 87 | }, 88 | 89 | Run: func(cmd *cobra.Command, args []string) { 90 | chrono.Init(repositoryPath) 91 | s := session.OpenSession(args[0]) 92 | log.Info().Str("session", args[0]).Msg("Session opened") 93 | s.Start() 94 | }, 95 | } 96 | 97 | var sessionMergeCmd = &cobra.Command{ 98 | Use: "merge", 99 | Short: "To squash merge all session commits to the original branch", 100 | Long: ``, 101 | Args: func(cmd *cobra.Command, args []string) error { 102 | if len(args) < 1 { 103 | return errors.New("Please specify a session name") 104 | } else if len(args) < 2 { 105 | return errors.New("Please provide a commit message") 106 | } 107 | 108 | return nil 109 | }, 110 | Run: func(cmd *cobra.Command, args []string) { 111 | chrono.Init(repositoryPath) 112 | s := session.OpenSession(args[0]) 113 | log.Info().Str("session", args[0]).Msg("Session opened") 114 | s.SquashMerge(args[1]) 115 | }, 116 | } 117 | 118 | var sessionStopCmd = &cobra.Command{ 119 | Use: "stop", 120 | Short: "Stops the session", 121 | Long: ``, 122 | Run: func(cmd *cobra.Command, args []string) { 123 | log.Fatal().Msg("Not implemented yet") 124 | }, 125 | } 126 | 127 | var sessionShowCmd = &cobra.Command{ 128 | Use: "show", 129 | Short: "Shows git commits specific to a session", 130 | Long: ``, 131 | 132 | Args: func(cmd *cobra.Command, args []string) error { 133 | if len(args) < 1 { 134 | return errors.New("Please specify a session name") 135 | } 136 | 137 | return nil 138 | }, 139 | 140 | Run: func(cmd *cobra.Command, args []string) { 141 | chrono.Init(repositoryPath) 142 | commits := session.GetSessionCommits(args[0]) 143 | 144 | tbl := table.New("Hash", "Author", "Message") 145 | 146 | tbl.WithHeaderFormatter(color.New(color.FgBlue, color.Underline, color.Bold).SprintfFunc()) 147 | tbl.WithFirstColumnFormatter(color.New(color.FgYellow, color.Bold).SprintfFunc()) 148 | tbl.WithPadding(8) 149 | 150 | for _, c := range commits { 151 | tbl.AddRow(c.Hash[:8], c.Author, c.Message) 152 | } 153 | 154 | tbl.Print() 155 | }, 156 | } 157 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module chrono 2 | 3 | go 1.19 4 | 5 | require ( 6 | github.com/fatih/color v1.13.0 7 | github.com/fsnotify/fsnotify v1.5.4 8 | github.com/libgit2/git2go/v34 v34.0.0 9 | github.com/rodaine/table v1.0.1 10 | github.com/rs/zerolog v1.27.0 11 | github.com/spf13/cobra v1.5.0 12 | github.com/spf13/viper v1.12.0 13 | ) 14 | 15 | require ( 16 | github.com/hashicorp/hcl v1.0.0 // indirect 17 | github.com/inconshreveable/mousetrap v1.0.1 // indirect 18 | github.com/magiconair/properties v1.8.6 // indirect 19 | github.com/mattn/go-colorable v0.1.13 // indirect 20 | github.com/mattn/go-isatty v0.0.16 // indirect 21 | github.com/mitchellh/mapstructure v1.5.0 // indirect 22 | github.com/pelletier/go-toml v1.9.5 // indirect 23 | github.com/pelletier/go-toml/v2 v2.0.1 // indirect 24 | github.com/spf13/afero v1.8.2 // indirect 25 | github.com/spf13/cast v1.5.0 // indirect 26 | github.com/spf13/jwalterweatherman v1.1.0 // indirect 27 | github.com/spf13/pflag v1.0.5 // indirect 28 | github.com/subosito/gotenv v1.3.0 // indirect 29 | golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 // indirect 30 | golang.org/x/sys v0.0.0-20220818161305-2296e01440c6 // indirect 31 | golang.org/x/text v0.3.8 // indirect 32 | gopkg.in/ini.v1 v1.66.4 // indirect 33 | gopkg.in/yaml.v2 v2.4.0 // indirect 34 | gopkg.in/yaml.v3 v3.0.0 // indirect 35 | ) 36 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 2 | cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 3 | cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= 4 | cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= 5 | cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= 6 | cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= 7 | cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= 8 | cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= 9 | cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= 10 | cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= 11 | cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= 12 | cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= 13 | cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= 14 | cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= 15 | cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= 16 | cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= 17 | cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= 18 | cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= 19 | cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPTY= 20 | cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= 21 | cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= 22 | cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= 23 | cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= 24 | cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= 25 | cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= 26 | cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= 27 | cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= 28 | cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= 29 | cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= 30 | cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= 31 | cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= 32 | cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= 33 | cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= 34 | cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= 35 | cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= 36 | cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= 37 | cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= 38 | dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= 39 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= 40 | github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= 41 | github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= 42 | github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= 43 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= 44 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= 45 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= 46 | github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= 47 | github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= 48 | github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= 49 | github.com/coreos/go-systemd/v22 v22.3.3-0.20220203105225-a9a7ef127534/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= 50 | github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= 51 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 52 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 53 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 54 | github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 55 | github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 56 | github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= 57 | github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= 58 | github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= 59 | github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= 60 | github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= 61 | github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= 62 | github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE= 63 | github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI= 64 | github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= 65 | github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= 66 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 67 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 68 | github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= 69 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 70 | github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 71 | github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 72 | github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 73 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 74 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 75 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= 76 | github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 77 | github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 78 | github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 79 | github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= 80 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 81 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 82 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 83 | github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 84 | github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 85 | github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= 86 | github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= 87 | github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= 88 | github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= 89 | github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= 90 | github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= 91 | github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= 92 | github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 93 | github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 94 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 95 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 96 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 97 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 98 | github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 99 | github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 100 | github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 101 | github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 102 | github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 103 | github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 104 | github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 105 | github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg= 106 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= 107 | github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= 108 | github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= 109 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 110 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 111 | github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 112 | github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 113 | github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 114 | github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 115 | github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 116 | github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= 117 | github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= 118 | github.com/google/pprof v0.0.0-20201218002935-b9804c9f04c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= 119 | github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= 120 | github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= 121 | github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= 122 | github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 123 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= 124 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= 125 | github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g= 126 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 127 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 128 | github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= 129 | github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= 130 | github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= 131 | github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= 132 | github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= 133 | github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc= 134 | github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= 135 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= 136 | github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= 137 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 138 | github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= 139 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= 140 | github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= 141 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 142 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 143 | github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= 144 | github.com/libgit2/git2go/v34 v34.0.0 h1:UKoUaKLmiCRbOCD3PtUi2hD6hESSXzME/9OUZrGcgu8= 145 | github.com/libgit2/git2go/v34 v34.0.0/go.mod h1:blVco2jDAw6YTXkErMMqzHLcAjKkwF0aWIRHBqiJkZ0= 146 | github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo= 147 | github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= 148 | github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= 149 | github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= 150 | github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= 151 | github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= 152 | github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= 153 | github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= 154 | github.com/mattn/go-isatty v0.0.16 h1:bq3VjFmv/sOjHtdEhmkEV4x1AJtvUvOJ2PFAZ5+peKQ= 155 | github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= 156 | github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0= 157 | github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= 158 | github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= 159 | github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= 160 | github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= 161 | github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= 162 | github.com/pelletier/go-toml/v2 v2.0.1 h1:8e3L2cCQzLFi2CR4g7vGFuFxX7Jl1kKX8gW+iV0GUKU= 163 | github.com/pelletier/go-toml/v2 v2.0.1/go.mod h1:r9LEWfGN8R5k0VXJ+0BkIe7MYkRdwZOjgMj2KwnJFUo= 164 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 165 | github.com/pkg/sftp v1.13.1/go.mod h1:3HaPG6Dq1ILlpPZRO0HVMrsydcdLt6HRDccSgb87qRg= 166 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 167 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 168 | github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 169 | github.com/rodaine/table v1.0.1 h1:U/VwCnUxlVYxw8+NJiLIuCxA/xa6jL38MY3FYysVWWQ= 170 | github.com/rodaine/table v1.0.1/go.mod h1:UVEtfBsflpeEcD56nF4F5AocNFta0ZuolpSVdPtlmP4= 171 | github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= 172 | github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k= 173 | github.com/rs/xid v1.3.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= 174 | github.com/rs/zerolog v1.27.0 h1:1T7qCieN22GVc8S4Q2yuexzBb1EqjbgjSH9RohbMjKs= 175 | github.com/rs/zerolog v1.27.0/go.mod h1:7frBqO0oezxmnO7GF86FY++uy8I0Tk/If5ni1G9Qc0U= 176 | github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= 177 | github.com/spf13/afero v1.8.2 h1:xehSyVa0YnHWsJ49JFljMpg1HX19V6NDZ1fkm1Xznbo= 178 | github.com/spf13/afero v1.8.2/go.mod h1:CtAatgMJh6bJEIs48Ay/FOnkljP3WeGUG0MC1RfAqwo= 179 | github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= 180 | github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= 181 | github.com/spf13/cobra v1.5.0 h1:X+jTBEBqF0bHN+9cSMgmfuvv2VHJ9ezmFNf9Y/XstYU= 182 | github.com/spf13/cobra v1.5.0/go.mod h1:dWXEIy2H428czQCjInthrTRUg7yKbok+2Qi/yBIJoUM= 183 | github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= 184 | github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= 185 | github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= 186 | github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= 187 | github.com/spf13/viper v1.12.0 h1:CZ7eSOd3kZoaYDLbXnmzgQI5RlciuXBMA+18HwHRfZQ= 188 | github.com/spf13/viper v1.12.0/go.mod h1:b6COn30jlNxbm/V2IqWiNWkJ+vZNiMNksliPCiuKtSI= 189 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 190 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 191 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= 192 | github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= 193 | github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 194 | github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 195 | github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY= 196 | github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 197 | github.com/subosito/gotenv v1.3.0 h1:mjC+YW8QpAdXibNi+vNWgzmgBH4+5l5dCXv8cNysBLI= 198 | github.com/subosito/gotenv v1.3.0/go.mod h1:YzJjq/33h7nrwdY+iHMhEOEEbW0ovIz0tB6t6PwAXzs= 199 | github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 200 | github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 201 | github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 202 | github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 203 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= 204 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= 205 | go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 206 | go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 207 | go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 208 | go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= 209 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 210 | golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 211 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 212 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 213 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 214 | golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= 215 | golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= 216 | golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= 217 | golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4 h1:kUhD7nTDoI3fVd9G4ORWrbV5NY0liEs/Jg2pv5f+bBA= 218 | golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= 219 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 220 | golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 221 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= 222 | golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= 223 | golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= 224 | golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 225 | golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 226 | golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 227 | golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= 228 | golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= 229 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= 230 | golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= 231 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 232 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= 233 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 234 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 235 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 236 | golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 237 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 238 | golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= 239 | golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 240 | golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 241 | golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 242 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= 243 | golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= 244 | golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= 245 | golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= 246 | golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 247 | golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 248 | golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 249 | golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 250 | golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 251 | golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 252 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 253 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 254 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 255 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 256 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 257 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 258 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 259 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 260 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= 261 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 262 | golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 263 | golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 264 | golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 265 | golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 266 | golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 267 | golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 268 | golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 269 | golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 270 | golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 271 | golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 272 | golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 273 | golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 274 | golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 275 | golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 276 | golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 277 | golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 278 | golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 279 | golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 280 | golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= 281 | golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= 282 | golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= 283 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 284 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 285 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 286 | golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 287 | golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 288 | golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 289 | golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 290 | golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 291 | golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 292 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 293 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 294 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 295 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 296 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 297 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 298 | golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 299 | golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 300 | golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 301 | golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 302 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 303 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 304 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 305 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 306 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 307 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 308 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 309 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 310 | golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 311 | golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 312 | golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 313 | golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 314 | golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 315 | golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 316 | golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 317 | golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 318 | golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 319 | golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 320 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 321 | golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 322 | golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 323 | golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 324 | golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 325 | golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 326 | golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 327 | golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 328 | golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 329 | golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 330 | golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 331 | golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 332 | golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 333 | golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 334 | golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 335 | golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 336 | golang.org/x/sys v0.0.0-20210225134936-a50acf3fe073/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 337 | golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 338 | golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 339 | golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 340 | golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 341 | golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 342 | golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 343 | golang.org/x/sys v0.0.0-20220818161305-2296e01440c6 h1:Sx/u41w+OwrInGdEckYmEuU5gHoGSL4QbDz3S9s6j4U= 344 | golang.org/x/sys v0.0.0-20220818161305-2296e01440c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 345 | golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= 346 | golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E= 347 | golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= 348 | golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 349 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 350 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 351 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 352 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 353 | golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 354 | golang.org/x/text v0.3.8 h1:nAL+RVCQ9uMn3vJZbV+MRnydTJFPf8qqY42YiA6MrqY= 355 | golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= 356 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 357 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 358 | golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 359 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 360 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 361 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= 362 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 363 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 364 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 365 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 366 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 367 | golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 368 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 369 | golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 370 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 371 | golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 372 | golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 373 | golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 374 | golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 375 | golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 376 | golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 377 | golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 378 | golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 379 | golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 380 | golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 381 | golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 382 | golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 383 | golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 384 | golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 385 | golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 386 | golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 387 | golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 388 | golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 389 | golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 390 | golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 391 | golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= 392 | golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 393 | golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 394 | golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 395 | golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 396 | golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 397 | golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 398 | golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 399 | golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= 400 | golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 401 | golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 402 | golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 403 | golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 404 | golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 405 | golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= 406 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 407 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 408 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 409 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 410 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= 411 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= 412 | google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 413 | google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 414 | google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 415 | google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 416 | google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 417 | google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 418 | google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 419 | google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 420 | google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 421 | google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 422 | google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 423 | google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 424 | google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= 425 | google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= 426 | google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= 427 | google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= 428 | google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= 429 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 430 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 431 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 432 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= 433 | google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 434 | google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 435 | google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 436 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 437 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 438 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 439 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 440 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 441 | google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 442 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 443 | google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= 444 | google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 445 | google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 446 | google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 447 | google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 448 | google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 449 | google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 450 | google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= 451 | google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 452 | google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 453 | google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 454 | google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 455 | google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 456 | google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 457 | google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 458 | google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 459 | google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= 460 | google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= 461 | google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= 462 | google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 463 | google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 464 | google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 465 | google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 466 | google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 467 | google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 468 | google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 469 | google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 470 | google.golang.org/genproto v0.0.0-20210108203827-ffc7fda8c3d7/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 471 | google.golang.org/genproto v0.0.0-20210226172003-ab064af71705/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 472 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 473 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= 474 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= 475 | google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= 476 | google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= 477 | google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 478 | google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 479 | google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 480 | google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= 481 | google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= 482 | google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 483 | google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 484 | google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 485 | google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= 486 | google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= 487 | google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= 488 | google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= 489 | google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= 490 | google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= 491 | google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= 492 | google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= 493 | google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 494 | google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 495 | google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 496 | google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= 497 | google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= 498 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 499 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= 500 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 501 | gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= 502 | gopkg.in/ini.v1 v1.66.4 h1:SsAcf+mM7mRZo2nJNGt8mZCjG8ZRaNGMURJw7BsIST4= 503 | gopkg.in/ini.v1 v1.66.4/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= 504 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 505 | gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= 506 | gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= 507 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 508 | gopkg.in/yaml.v3 v3.0.0 h1:hjy8E9ON/egN1tAYqKb61G10WtihqetD4sz2H+8nIeA= 509 | gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 510 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 511 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 512 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 513 | honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 514 | honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= 515 | honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 516 | honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 517 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= 518 | rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= 519 | rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= 520 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "chrono/cmd" 5 | ) 6 | 7 | func main() { 8 | cmd.Run() 9 | } 10 | -------------------------------------------------------------------------------- /pkg/chrono/chrono.go: -------------------------------------------------------------------------------- 1 | package chrono 2 | 3 | import ( 4 | "os" 5 | "path/filepath" 6 | 7 | "github.com/rs/zerolog/log" 8 | ) 9 | 10 | const DotChronoDirName string = ".chrono" 11 | const SessionsFileName string = "sessions.json" 12 | 13 | var RootPath string 14 | 15 | func Init(path string) { 16 | RootPath = path 17 | 18 | cp := filepath.Join(path, DotChronoDirName) 19 | err := os.MkdirAll(cp, os.ModePerm) 20 | if err != nil { 21 | log.Fatal().Err(err).Msg("Failed to create .chrono directory") 22 | } 23 | 24 | sp := filepath.Join(path, DotChronoDirName, SessionsFileName) 25 | 26 | _, err = os.ReadFile(sp) 27 | if os.IsNotExist(err) { 28 | f, err := os.Create(sp) 29 | if err != nil { 30 | log.Fatal().Err(err).Msg("Failed to create sessions file") 31 | } 32 | 33 | _, err = f.WriteString("{}") 34 | if err != nil { 35 | log.Fatal().Err(err).Msg("Failed to write to sessions file") 36 | } 37 | 38 | f.Close() 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /pkg/chrono/session/session.go: -------------------------------------------------------------------------------- 1 | package session 2 | 3 | import ( 4 | "chrono/pkg/chrono" 5 | "chrono/pkg/config" 6 | "chrono/pkg/event/periodic" 7 | "chrono/pkg/event/save" 8 | "chrono/pkg/repository" 9 | "chrono/pkg/scheduler" 10 | "chrono/pkg/signal" 11 | "context" 12 | "encoding/json" 13 | "os" 14 | "path/filepath" 15 | "strings" 16 | "sync" 17 | 18 | "github.com/rs/zerolog/log" 19 | ) 20 | 21 | type SessionDef struct { 22 | Name string `json: "Name"` 23 | Branch string `json: "Branch"` 24 | Source string `json: "Source"` 25 | } 26 | 27 | type Session struct { 28 | Info SessionDef 29 | r *repository.Repository 30 | } 31 | 32 | func GetSessionCommits(sessionName string) []repository.CommitInfo { 33 | sessionsPath := filepath.Join(chrono.RootPath, chrono.DotChronoDirName, chrono.SessionsFileName) 34 | 35 | file, err := os.ReadFile(sessionsPath) 36 | if err != nil { 37 | log.Fatal().Err(err).Msg("Error") 38 | } 39 | 40 | sessions := make(map[string]SessionDef) 41 | err = json.Unmarshal(file, &sessions) 42 | if err != nil { 43 | log.Fatal().Err(err).Msg("Error") 44 | } 45 | 46 | r := repository.Open(chrono.RootPath) 47 | commits := r.GetCommits(sessions[sessionName].Branch) 48 | 49 | return commits 50 | } 51 | 52 | func GetSessions() map[string]SessionDef { 53 | sessionsPath := filepath.Join(chrono.RootPath, chrono.DotChronoDirName, chrono.SessionsFileName) 54 | 55 | file, err := os.ReadFile(sessionsPath) 56 | if err != nil { 57 | log.Fatal().Err(err).Msg("Error") 58 | } 59 | 60 | sessions := make(map[string]SessionDef) 61 | 62 | err = json.Unmarshal(file, &sessions) 63 | if err != nil { 64 | log.Fatal().Err(err).Msg("Error") 65 | } 66 | 67 | return sessions 68 | } 69 | 70 | func OpenSession(name string) *Session { 71 | r := repository.Open(chrono.RootPath) 72 | log.Info().Str("repository", chrono.RootPath).Msg("Opened GIT repository") 73 | 74 | info, ok := GetSessions()[name] 75 | if !ok { 76 | log.Fatal().Str("name", name).Msg("Session of that name doesn't exist") 77 | } 78 | 79 | return &Session{ 80 | Info: info, 81 | r: r, 82 | } 83 | } 84 | 85 | func CreateSession(name string) { 86 | r := repository.Open(chrono.RootPath) 87 | log.Info().Str("repository", chrono.RootPath).Msg("Opened GIT repository") 88 | 89 | sessions := GetSessions() 90 | 91 | if _, ok := sessions[name]; ok { 92 | log.Fatal().Str("name", name).Msg("Session of that name already exists") 93 | } 94 | 95 | var sb strings.Builder 96 | sb.WriteString("chrono/") 97 | sb.WriteString(name) 98 | branchName := sb.String() 99 | 100 | r.CreateBranch(branchName) 101 | 102 | sessions[name] = SessionDef{ 103 | Name: name, 104 | Branch: branchName, 105 | Source: r.GetBranchName(), 106 | } 107 | 108 | sessionsPath := filepath.Join(chrono.RootPath, chrono.DotChronoDirName, chrono.SessionsFileName) 109 | bytes, err := json.Marshal(&sessions) 110 | if err != nil { 111 | r.DeleteBranch(branchName) 112 | log.Fatal().Err(err).Msg("Marshal error") 113 | } 114 | 115 | err = os.WriteFile(sessionsPath, bytes, os.ModePerm) 116 | if err != nil { 117 | r.DeleteBranch(branchName) 118 | log.Fatal().Err(err).Msg("Error") 119 | } 120 | } 121 | 122 | func DeleteSession(name string) { 123 | r := repository.Open(chrono.RootPath) 124 | log.Info().Str("repository", chrono.RootPath).Msg("Opened GIT repository") 125 | 126 | sessions := GetSessions() 127 | 128 | s, ok := sessions[name] 129 | 130 | if !ok { 131 | log.Fatal().Str("name", name).Msg("Session of that name doesn't exist") 132 | } 133 | 134 | r.DeleteBranch(s.Branch) 135 | delete(sessions, name) 136 | 137 | sessionsPath := filepath.Join(chrono.RootPath, chrono.DotChronoDirName, chrono.SessionsFileName) 138 | bytes, err := json.Marshal(&sessions) 139 | if err != nil { 140 | log.Fatal().Err(err).Msg("Marshal error") 141 | } 142 | 143 | err = os.WriteFile(sessionsPath, bytes, os.ModePerm) 144 | if err != nil { 145 | log.Fatal().Err(err).Msg("Error") 146 | } 147 | } 148 | 149 | func (s *Session) Start() { 150 | var wg sync.WaitGroup 151 | ctx, cancel := context.WithCancel(context.Background()) 152 | 153 | go func() { 154 | for { 155 | select { 156 | case <-signal.Ch: 157 | cancel() 158 | wg.Wait() 159 | os.Exit(0) 160 | } 161 | } 162 | }() 163 | 164 | s.r.CheckoutBranch(s.Info.Branch) 165 | 166 | scheduler.Init(ctx) 167 | scheduler.SetRepository(s.r) 168 | 169 | wg.Add(1) 170 | go func() { 171 | defer wg.Done() 172 | scheduler.Run() 173 | scheduler.Fini() 174 | }() 175 | 176 | if config.Cfg.Events.Periodic != nil { 177 | scheduler.AddEvent(periodic.Periodic) 178 | } 179 | 180 | if config.Cfg.Events.Save != nil { 181 | scheduler.AddEvent(save.Save) 182 | } 183 | 184 | wg.Wait() 185 | } 186 | 187 | func (s *Session) SquashMerge(msg string) { 188 | s.r.SquashMerge(s.Info.Source, s.Info.Branch, msg) 189 | } 190 | -------------------------------------------------------------------------------- /pkg/config/config.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | import ( 4 | "log" 5 | 6 | "github.com/spf13/viper" 7 | ) 8 | 9 | type CfgGit struct { 10 | AutoAdd bool `mapstructure:"auto-add"` 11 | } 12 | 13 | type CfgPeriodic struct { 14 | Period int `mapstructure:"period"` 15 | Files []string `mapstructure:"files"` 16 | } 17 | 18 | type CfgSave struct { 19 | Files []string `mapstructure:"files"` 20 | } 21 | 22 | type CfgEvents struct { 23 | Periodic *CfgPeriodic `mapstructure:"periodic"` 24 | Save *CfgSave `mapstructure:"save"` 25 | } 26 | 27 | type CfgRoot struct { 28 | Events *CfgEvents `mapstructure:"events"` 29 | Git *CfgGit `mapstructure:"git"` 30 | } 31 | 32 | var Cfg CfgRoot 33 | 34 | func Load() { 35 | viper.SetConfigName("chrono") 36 | viper.SetConfigType("yaml") 37 | viper.AddConfigPath(".") 38 | 39 | err := viper.ReadInConfig() 40 | 41 | if err != nil { 42 | log.Fatalf("Fatal error: couldn't load config file: %v", err.Error()) 43 | } 44 | 45 | err = viper.Unmarshal(&Cfg) 46 | 47 | if err != nil { 48 | log.Fatalf("Fatal error: %v", err.Error()) 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /pkg/event/event/event.go: -------------------------------------------------------------------------------- 1 | package event 2 | 3 | import "context" 4 | 5 | type Event interface { 6 | Init(ctx context.Context) error 7 | Watch() error 8 | Fini() error 9 | } 10 | -------------------------------------------------------------------------------- /pkg/event/periodic/periodic.go: -------------------------------------------------------------------------------- 1 | package periodic 2 | 3 | import ( 4 | "chrono/pkg/config" 5 | "chrono/pkg/scheduler" 6 | "context" 7 | "fmt" 8 | 9 | "time" 10 | 11 | "github.com/rs/zerolog/log" 12 | ) 13 | 14 | type PeriodicEvent struct { 15 | ticker *time.Ticker 16 | ctx context.Context 17 | } 18 | 19 | var Periodic PeriodicEvent 20 | 21 | var ticker *time.Ticker 22 | 23 | func (event PeriodicEvent) Init(ctx context.Context) error { 24 | log.Info(). 25 | Int("period", config.Cfg.Events.Periodic.Period). 26 | Strs("files", config.Cfg.Events.Periodic.Files). 27 | Msg("Initializing Periodic") 28 | 29 | Periodic.ticker = time.NewTicker(time.Duration(config.Cfg.Events.Periodic.Period) * time.Second) 30 | Periodic.ctx = ctx 31 | return nil 32 | } 33 | 34 | func (event PeriodicEvent) Watch() error { 35 | for { 36 | select { 37 | case <-Periodic.ctx.Done(): 38 | return nil 39 | 40 | case <-Periodic.ticker.C: 41 | scheduler.Notify(scheduler.SchedulerMessage{ 42 | Sender: "Periodic", 43 | Message: fmt.Sprintf("[Periodic] %v", time.Now().Format("15:04:05 02/01/2006")), 44 | Paths: config.Cfg.Events.Periodic.Files, 45 | }) 46 | } 47 | } 48 | 49 | return nil 50 | } 51 | 52 | func (event PeriodicEvent) Fini() error { 53 | log.Info().Msg("Periodic stopped") 54 | return nil 55 | } 56 | -------------------------------------------------------------------------------- /pkg/event/save/save.go: -------------------------------------------------------------------------------- 1 | package save 2 | 3 | import ( 4 | "chrono/pkg/config" 5 | "chrono/pkg/scheduler" 6 | "context" 7 | "time" 8 | 9 | "fmt" 10 | 11 | "github.com/fsnotify/fsnotify" 12 | "github.com/rs/zerolog/log" 13 | ) 14 | 15 | type SaveEvent struct { 16 | ctx context.Context 17 | } 18 | 19 | var Save SaveEvent 20 | 21 | var watcher *fsnotify.Watcher 22 | 23 | func (event SaveEvent) Init(ctx context.Context) error { 24 | log.Info(). 25 | Strs("files", config.Cfg.Events.Save.Files). 26 | Msg("Initializing Save") 27 | 28 | var err error 29 | watcher, err = fsnotify.NewWatcher() 30 | if err != nil { 31 | return err 32 | } 33 | 34 | for _, file := range config.Cfg.Events.Save.Files { 35 | err = watcher.Add(file) 36 | if err != nil { 37 | return fmt.Errorf("Couldn't add %v : %v", file, err.Error()) 38 | } 39 | } 40 | 41 | Save.ctx = ctx 42 | 43 | return nil 44 | } 45 | 46 | func (event SaveEvent) Watch() error { 47 | for { 48 | select { 49 | case <-Save.ctx.Done(): 50 | return nil 51 | 52 | case e, ok := <-watcher.Events: 53 | if !ok { 54 | return fmt.Errorf("Couldn't read watcher event") 55 | } 56 | 57 | if e.Op&fsnotify.Write == fsnotify.Write { 58 | scheduler.Notify(scheduler.SchedulerMessage{ 59 | Sender: "Save", 60 | Message: fmt.Sprintf("[Save] Updated %v %v", e.Name, time.Now().Format("15:04:05 02/01/2006")), 61 | Paths: config.Cfg.Events.Save.Files, 62 | }) 63 | } 64 | 65 | case err, ok := <-watcher.Errors: 66 | if !ok { 67 | return fmt.Errorf("Couldn't read watcher error") 68 | } 69 | 70 | return fmt.Errorf("Watcher error: %v", err.Error()) 71 | } 72 | 73 | } 74 | 75 | return nil 76 | } 77 | 78 | func (event SaveEvent) Fini() error { 79 | log.Info().Msg("Save stopped") 80 | return watcher.Close() 81 | } 82 | -------------------------------------------------------------------------------- /pkg/repository/repository.go: -------------------------------------------------------------------------------- 1 | package repository 2 | 3 | import ( 4 | "chrono/pkg/config" 5 | "sync" 6 | "time" 7 | 8 | git "github.com/libgit2/git2go/v34" 9 | "github.com/rs/zerolog/log" 10 | ) 11 | 12 | type Repository struct { 13 | Git *git.Repository 14 | sessionBranch string 15 | mutex sync.Mutex 16 | } 17 | 18 | type CommitInfo struct { 19 | Hash string 20 | Author string 21 | Message string 22 | } 23 | 24 | func Open(path string) *Repository { 25 | r, err := git.OpenRepository(path) 26 | if err != nil { 27 | log.Fatal().Err(err).Msg("GIT Error, failed to open GIT repository") 28 | } 29 | 30 | return &Repository{ 31 | Git: r, 32 | } 33 | } 34 | 35 | func (r *Repository) GetBranchName() string { 36 | r.mutex.Lock() 37 | defer r.mutex.Unlock() 38 | 39 | head, err := r.Git.Head() 40 | if err != nil { 41 | log.Fatal().Err(err).Msg("GIT Error, failed to get HEAD") 42 | } 43 | defer head.Free() 44 | 45 | branch := head.Branch() 46 | currentBranchName, err := branch.Name() 47 | if err != nil { 48 | log.Fatal().Err(err).Msg("GIT Error, failed to get branch name") 49 | } 50 | 51 | return currentBranchName 52 | } 53 | 54 | func (r *Repository) CreateBranch(name string) { 55 | r.mutex.Lock() 56 | defer r.mutex.Unlock() 57 | 58 | head, err := r.Git.Head() 59 | if err != nil { 60 | log.Fatal().Err(err).Msg("GIT Error, failed to get HEAD") 61 | } 62 | defer head.Free() 63 | 64 | commit, err := r.Git.LookupCommit(head.Target()) 65 | if err != nil { 66 | log.Fatal().Err(err).Msg("GIT Error, failed to get current commit") 67 | } 68 | defer commit.Free() 69 | 70 | log.Info().Str("commit", commit.Message()).Msg("Branching from commit") 71 | 72 | b, err := r.Git.CreateBranch(name, commit, false) 73 | if err != nil { 74 | log.Fatal().Err(err).Msg("GIT Error, failed to create branch") 75 | } 76 | defer b.Free() 77 | } 78 | 79 | func (r *Repository) DeleteBranch(name string) { 80 | r.mutex.Lock() 81 | defer r.mutex.Unlock() 82 | 83 | branch, err := r.Git.LookupBranch(name, git.BranchLocal) 84 | if err != nil { 85 | log.Fatal().Err(err).Msg("GIT Error, failed to lookup branch") 86 | } 87 | defer branch.Free() 88 | 89 | err = branch.Delete() 90 | if err != nil { 91 | log.Fatal().Err(err).Msg("GIT Error, failed to delete branch") 92 | } 93 | } 94 | 95 | func (r *Repository) CheckoutBranch(name string) { 96 | r.mutex.Lock() 97 | defer r.mutex.Unlock() 98 | 99 | branch, err := r.Git.LookupBranch(name, git.BranchLocal) 100 | if err != nil { 101 | log.Fatal().Err(err).Msg("GIT Error, failed to lookup branch") 102 | } 103 | defer branch.Free() 104 | 105 | commit, err := r.Git.LookupCommit(branch.Target()) 106 | if err != nil { 107 | log.Fatal().Err(err).Msg("GIT Error, failed to get last commit") 108 | } 109 | defer commit.Free() 110 | 111 | tree, err := commit.Tree() 112 | if err != nil { 113 | log.Fatal().Err(err).Msg("GIT Error, failed to retreive tree") 114 | } 115 | defer tree.Free() 116 | 117 | err = r.Git.CheckoutTree(tree, &git.CheckoutOptions{Strategy: git.CheckoutSafe}) 118 | if err != nil { 119 | log.Fatal().Err(err).Msg("GIT Error, failed to checkout tree") 120 | } 121 | 122 | err = r.Git.SetHead(branch.Reference.Name()) 123 | if err != nil { 124 | log.Fatal().Err(err).Msg("GIT Error, failed to set HEAD") 125 | } 126 | 127 | r.sessionBranch = name 128 | } 129 | 130 | func (r *Repository) AssertBranchNotChanged() { 131 | r.mutex.Lock() 132 | defer r.mutex.Unlock() 133 | 134 | head, err := r.Git.Head() 135 | if err != nil { 136 | log.Fatal().Err(err).Msg("GIT Error, failed to get HEAD") 137 | } 138 | defer head.Free() 139 | 140 | branch := head.Branch() 141 | currentBranchName, err := branch.Name() 142 | if err != nil { 143 | log.Fatal().Err(err).Msg("GIT Error, failed to get branch name") 144 | } 145 | 146 | if r.sessionBranch != currentBranchName { 147 | log.Fatal().Str("expected", r.sessionBranch). 148 | Str("found", currentBranchName). 149 | Msg("Branch changed ! Please make sure the branch doesn't get changed while chrono is running") 150 | } 151 | } 152 | 153 | func (r *Repository) Commit(paths []string, author string, message string) { 154 | r.mutex.Lock() 155 | defer r.mutex.Unlock() 156 | 157 | head, err := r.Git.Head() 158 | if err != nil { 159 | log.Fatal().Err(err).Msg("GIT Error, failed to get HEAD") 160 | } 161 | defer head.Free() 162 | 163 | branch := head.Branch() 164 | index, err := r.Git.Index() 165 | if err != nil { 166 | log.Fatal().Err(err).Msg("GIT Error, failed to retreive index") 167 | } 168 | defer index.Free() 169 | 170 | updatesExist := false 171 | err = index.UpdateAll(paths, func(s1, s2 string) error { 172 | updatesExist = true 173 | return nil 174 | }) 175 | 176 | if config.Cfg.Git != nil && config.Cfg.Git.AutoAdd { 177 | log.Info().Msg("Auto-adding all files") 178 | index.AddAll([]string{"*"}, git.IndexAddCheckPathspec, func(s1, s2 string) error { 179 | updatesExist = true 180 | return nil 181 | }) 182 | } 183 | 184 | if err != nil { 185 | log.Fatal().Err(err).Msg("GIT Error, failed to update index") 186 | } 187 | 188 | if !updatesExist { 189 | log.Info().Msg("Didn't commit, There are no updates") 190 | return 191 | } 192 | 193 | err = index.Write() 194 | if err != nil { 195 | log.Fatal().Err(err).Msg("GIT Error, failed to write index") 196 | } 197 | 198 | oid, err := index.WriteTree() 199 | if err != nil { 200 | log.Fatal().Err(err).Msg("GIT Error, failed to write tree") 201 | } 202 | tree, err := r.Git.LookupTree(oid) 203 | if err != nil { 204 | log.Fatal().Err(err).Msg("GIT Error, failed to lookup tree") 205 | } 206 | defer tree.Free() 207 | 208 | lastCommit, err := r.Git.LookupCommit(branch.Target()) 209 | if err != nil { 210 | log.Fatal().Err(err).Msg("GIT Error, failed to lookup commit") 211 | } 212 | defer lastCommit.Free() 213 | 214 | sig := &git.Signature{ 215 | Name: author, 216 | Email: "Chrono", 217 | When: time.Now(), 218 | } 219 | 220 | commitId, err := r.Git.CreateCommit("HEAD", sig, sig, message, tree, lastCommit) 221 | if err != nil { 222 | log.Fatal().Err(err).Msg("GIT Error, failed to create commit") 223 | } 224 | 225 | r.Git.CheckoutHead(&git.CheckoutOptions{ 226 | Strategy: git.CheckoutSafe | git.CheckoutRecreateMissing, 227 | }) 228 | 229 | log.Info().Str("id", commitId.String()).Msg("New git commit") 230 | } 231 | 232 | func (r *Repository) SquashMerge(dst string, src string, msg string) { 233 | r.mutex.Lock() 234 | defer r.mutex.Unlock() 235 | 236 | // Step 1: Checkout to destination branch 237 | branch, err := r.Git.LookupBranch(dst, git.BranchLocal) 238 | if err != nil { 239 | log.Fatal().Err(err).Msg("GIT Error, failed to lookup branch") 240 | } 241 | defer branch.Free() 242 | 243 | commit, err := r.Git.LookupCommit(branch.Target()) 244 | if err != nil { 245 | log.Fatal().Err(err).Msg("GIT Error, failed to get last commit") 246 | } 247 | defer commit.Free() 248 | 249 | tree, err := commit.Tree() 250 | if err != nil { 251 | log.Fatal().Err(err).Msg("GIT Error, failed to retreive tree") 252 | } 253 | defer tree.Free() 254 | 255 | err = r.Git.CheckoutTree(tree, &git.CheckoutOptions{Strategy: git.CheckoutSafe}) 256 | if err != nil { 257 | log.Fatal().Err(err).Msg("GIT Error, failed to checkout tree") 258 | } 259 | 260 | err = r.Git.SetHead(branch.Reference.Name()) 261 | if err != nil { 262 | log.Fatal().Err(err).Msg("GIT Error, failed to set HEAD") 263 | } 264 | 265 | r.sessionBranch = dst 266 | 267 | // Step 2: Get both the destination and source branch for later use 268 | srcBranch, err := r.Git.LookupBranch(src, git.BranchLocal) 269 | if err != nil { 270 | log.Fatal().Err(err).Str("src", src).Msg("GIT Error, Failed to lookup source branch") 271 | } 272 | defer srcBranch.Free() 273 | 274 | dstBranch, err := r.Git.LookupBranch(dst, git.BranchLocal) 275 | if err != nil { 276 | log.Fatal().Err(err).Str("destination", src).Msg("GIT Error, Failed to lookup destination branch") 277 | } 278 | defer dstBranch.Free() 279 | 280 | // Step 3: Do merge analysis 281 | ac, err := r.Git.AnnotatedCommitFromRef(srcBranch.Reference) 282 | if err != nil { 283 | log.Fatal().Err(err).Str("src", src).Msg("GIT Error, Failed get annotated commit") 284 | } 285 | defer ac.Free() 286 | 287 | head, err := r.Git.Head() 288 | if err != nil { 289 | log.Fatal().Err(err).Msg("GIT Error, failed to get HEAD") 290 | } 291 | defer head.Free() 292 | 293 | mergeHeads := make([]*git.AnnotatedCommit, 1) 294 | mergeHeads[0] = ac 295 | analysis, _, err := r.Git.MergeAnalysis(mergeHeads) 296 | if err != nil { 297 | log.Fatal().Err(err).Msg("GIT Error, Merge analysis failed") 298 | } 299 | 300 | if analysis&git.MergeAnalysisNone != 0 || analysis&git.MergeAnalysisUpToDate != 0 { 301 | log.Fatal().Msg("GIT Error, Nothing to merge") 302 | } 303 | 304 | if analysis&git.MergeAnalysisNormal == 0 { 305 | log.Fatal().Msg("GIT Error, Git merge analysis reported a not normal merge") 306 | } 307 | 308 | // Step 4: Merge 309 | mergeOpts, err := git.DefaultMergeOptions() 310 | if err != nil { 311 | log.Fatal().Err(err).Msg("GIT Error, DefaultMergeOptions() failed") 312 | } 313 | 314 | mergeOpts.FileFavor = git.MergeFileFavorNormal 315 | mergeOpts.TreeFlags = git.MergeTreeFailOnConflict 316 | 317 | checkoutOpts := &git.CheckoutOptions{ 318 | Strategy: git.CheckoutSafe | git.CheckoutRecreateMissing | git.CheckoutUseTheirs, 319 | } 320 | 321 | err = r.Git.Merge(mergeHeads, &mergeOpts, checkoutOpts) 322 | if err != nil { 323 | log.Fatal().Err(err).Msg("GIT error, Merge failed") 324 | } 325 | 326 | index, err := r.Git.Index() 327 | if err != nil { 328 | log.Fatal().Err(err).Msg("GIT Error, failed to retreive index") 329 | } 330 | defer index.Free() 331 | 332 | if index.HasConflicts() { 333 | log.Fatal().Msg("GIT Error, Merge conflicts, please solve them and commit manually") 334 | } 335 | 336 | // Step 5: Commit 337 | commit, err = r.Git.LookupCommit(dstBranch.Target()) 338 | if err != nil { 339 | log.Fatal().Err(err).Msg("GIT Error, failed to lookup commit") 340 | } 341 | defer commit.Free() 342 | 343 | sig := &git.Signature{ 344 | Name: "Chrono", 345 | Email: "Chrono", 346 | When: time.Now(), 347 | } 348 | 349 | treeId, err := index.WriteTree() 350 | if err != nil { 351 | log.Fatal().Err(err).Msg("GIT Error, Failed to write tree") 352 | } 353 | 354 | t, err := r.Git.LookupTree(treeId) 355 | if err != nil { 356 | log.Fatal().Err(err).Msg("GIT Error, Failed to lookup tree") 357 | } 358 | defer t.Free() 359 | 360 | currentCommit, err := r.Git.LookupCommit(head.Target()) 361 | if err != nil { 362 | log.Fatal().Err(err).Msg("GIT error, Failed to get current commit") 363 | } 364 | defer currentCommit.Free() 365 | 366 | commitId, err := r.Git.CreateCommit("HEAD", sig, sig, msg, t, currentCommit) 367 | if err != nil { 368 | log.Fatal().Err(err).Msg("GIT Error, failed to create commit") 369 | } 370 | 371 | r.Git.CheckoutHead(&git.CheckoutOptions{ 372 | Strategy: git.CheckoutSafe | git.CheckoutRecreateMissing, 373 | }) 374 | 375 | log.Info().Str("id", commitId.String()).Msg("New git commit") 376 | 377 | // Step 6: Cleanup the state 378 | err = r.Git.StateCleanup() 379 | if err != nil { 380 | log.Fatal().Err(err).Msg("GIT Error, Failed to cleanup state") 381 | } 382 | } 383 | 384 | func (r *Repository) GetCommits(branchName string) []CommitInfo { 385 | r.mutex.Lock() 386 | defer r.mutex.Unlock() 387 | 388 | branch, err := r.Git.LookupBranch(branchName, git.BranchLocal) 389 | if err != nil { 390 | log.Fatal().Err(err).Msg("GIT Error, failed to lookup branch") 391 | } 392 | defer branch.Free() 393 | 394 | commit, err := r.Git.LookupCommit(branch.Target()) 395 | if err != nil { 396 | log.Fatal().Err(err).Msg("GIT Error, failed to get last commit") 397 | } 398 | defer commit.Free() 399 | 400 | k, err := commit.Owner().Walk() 401 | if err != nil { 402 | log.Fatal().Err(err).Msg("GIT Error, Walk() failed") 403 | } 404 | 405 | err = k.Push(commit.Id()) 406 | if err != nil { 407 | log.Fatal().Err(err).Msg("GIT Error, Push() failed") 408 | } 409 | 410 | commits := []CommitInfo{} 411 | err = k.Iterate(func(c *git.Commit) bool { 412 | if c.Author().Email != "Chrono" { 413 | return true 414 | } 415 | 416 | commits = append(commits, CommitInfo{ 417 | Hash: c.Id().String(), 418 | Author: c.Author().Name, 419 | Message: c.Message(), 420 | }) 421 | //log.Debug().Str("msg", c.Message()).Str("hash", c.Id().String()).Msg("Debug") 422 | return true 423 | }) 424 | 425 | if err != nil { 426 | log.Fatal().Err(err).Msg("GIT Error, Iterate() failed") 427 | } 428 | 429 | return commits 430 | } 431 | -------------------------------------------------------------------------------- /pkg/scheduler/scheduler.go: -------------------------------------------------------------------------------- 1 | package scheduler 2 | 3 | import ( 4 | "chrono/pkg/event/event" 5 | "chrono/pkg/repository" 6 | "context" 7 | "sync" 8 | 9 | "github.com/rs/zerolog/log" 10 | ) 11 | 12 | type SchedulerMessage struct { 13 | Sender string 14 | Message string 15 | Paths []string 16 | } 17 | 18 | var scheduler struct { 19 | repository *repository.Repository 20 | channel chan SchedulerMessage 21 | eventsWG sync.WaitGroup 22 | ctx context.Context 23 | mutex sync.Mutex 24 | } 25 | 26 | func Init(ctx context.Context) { 27 | scheduler.channel = make(chan SchedulerMessage) 28 | scheduler.ctx = ctx 29 | log.Info().Msg("Scheduler: Starting..") 30 | } 31 | 32 | func Fini() { 33 | log.Info().Msg("Scheduler: Stopping..") 34 | scheduler.eventsWG.Wait() 35 | close(scheduler.channel) 36 | } 37 | 38 | func AddEvent(event event.Event) { 39 | err := event.Init(scheduler.ctx) 40 | if err != nil { 41 | log.Fatal().Err(err).Msg("Error") 42 | } 43 | 44 | scheduler.eventsWG.Add(1) 45 | 46 | go func() { 47 | defer scheduler.eventsWG.Done() 48 | event.Watch() 49 | event.Fini() 50 | }() 51 | } 52 | 53 | func SetRepository(r *repository.Repository) { 54 | scheduler.repository = r 55 | } 56 | 57 | func Notify(msg SchedulerMessage) { 58 | scheduler.channel <- msg 59 | } 60 | 61 | func Run() { 62 | if scheduler.repository == nil { 63 | log.Fatal().Msg("Can not start scheduler with a nil repository") 64 | } 65 | 66 | log.Info().Msg("Scheduler: Running") 67 | for { 68 | select { 69 | case <-scheduler.ctx.Done(): 70 | return 71 | case msg := <-scheduler.channel: 72 | log.Info().Str("event", msg.Sender).Str("msg", msg.Message).Msg("Event") 73 | 74 | scheduler.repository.AssertBranchNotChanged() 75 | scheduler.repository.Commit(msg.Paths, msg.Sender, msg.Message) 76 | } 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /pkg/signal/signal.go: -------------------------------------------------------------------------------- 1 | package signal 2 | 3 | import ( 4 | "os" 5 | "os/signal" 6 | ) 7 | 8 | var Ch chan os.Signal 9 | 10 | func Init() { 11 | Ch = make(chan os.Signal, 1) 12 | signal.Notify(Ch, os.Interrupt) 13 | } 14 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 |

Chrono

5 |

A Git Time Machine

6 | 7 | Build 8 | 9 | GitHub go.mod Go version 10 | GitHub 11 |
12 | 13 | --- 14 | 15 |

16 | Chrono automatically commits in a temporary branch every time a costumizable event occurs. 17 |

18 |

19 | So that you can always rollback to a specific point in time if anything goes wrong. 20 |

21 |

22 | You can squash merge all the temporary commits into one once you are done. 23 |

24 | 25 |

26 | 27 |

28 | 29 | --- 30 | 31 | ## Disclaimer 32 | This is still in early development stages. 33 | 34 | If you are going to use it or test it, ***please use with caution***. 35 | 36 | Use at your own risk, I am ***NOT*** responsible for any of your acts. 37 | 38 | 39 | ## How to install 40 | 41 | ```bash 42 | git clone https://github.com/hazyuun/Chrono.git 43 | cd Chrono 44 | go install . 45 | ``` 46 | > Make sure you have `go` installed, if not, you can easily install it using your package manager 47 | 48 | The binary will be installed into `~/go/bin/` by default, make sure it is in your `PATH` environment variable, if not, you can add it using: 49 | 50 | ```bash 51 | export PATH="$HOME/go/bin/:$PATH" 52 | ``` 53 | > Note that this will add `~/go/bin/` to `PATH` just for the current terminal session, you can add that line to your `~/.profile` for a permanent effect. 54 | 55 | Now you can run the following command to check if it is installed correctly: 56 | 57 | ```bash 58 | chrono --help 59 | ``` 60 | 61 | ## Workflow 62 | ### Create a chrono session 63 | 64 | Create a new session using: 65 | 66 | ```bash 67 | $ chrono session create session_name 68 | ``` 69 | Important: Please note that this will create a branch from the current HEAD, so make sure it is currently in the commit where you want to create the chrono session. 70 | 71 | You can create as many sessions as you want, to list existing sessions you can run the following command: 72 | 73 | ```bash 74 | $ chrono session list 75 | ``` 76 | 77 |
78 | 79 |
80 | 81 | ### Start a Chrono session 82 | Start a Chrono session using: 83 | ```bash 84 | $ chrono session start session_name 85 | ``` 86 | From now on, Chrono will be automatically committing changes to the session's specific branch whenever an event occurs. 87 | 88 | > Important: Please note that after you stop running this command, you will still be in the session branch for convinience. 89 | 90 | Events are customizable using a `chrono.yaml` file (see [below](#config-file) for details). 91 | 92 | --- 93 | 94 | ### Merging and deleting the session 95 | ## Using chrono 96 | When done, you can merge the Chrono branch to your original branch 97 | ```bash 98 | $ chrono session merge session_name "Commit message" 99 | ``` 100 | 101 | Then if everything is as expected, you can delete the session: 102 | ```bash 103 | $ chrono session delete session_name 104 | ``` 105 | --- 106 | ## Manually 107 | You can also merge manually (A squash merge is recommended) the Chrono branch to your original branch (let's call it original_branch): 108 | ```bash 109 | $ git checkout original_branch 110 | $ git merge --squash chrono/session_name 111 | ``` 112 | Then if everything is as expected, you can commit the merge: 113 | ```bash 114 | $ git commit -m "Your commit message" 115 | ``` 116 | ...and delete the session: 117 | ```bash 118 | $ chrono session delete session_name 119 | ``` 120 | --- 121 | 122 | ## Config file 123 | Put a file named `chrono.yml` in the root of your repository. 124 | 125 | Here is an example config file: 126 | ```yaml 127 | 128 | # Events when to automatically commit 129 | events: 130 | # This triggers every amount of minutes 131 | - periodic: 132 | 133 | # Every 60 seconds 134 | period: 60 135 | 136 | # Commit those files 137 | files: ["src/", "file.txt"] 138 | 139 | # This triggers every file save 140 | - save: 141 | 142 | # Those files will be committed once they're saved 143 | files: ["notes.txt"] 144 | 145 | # Use files: ["."] if you want all files inside the current directory to be commited (Not recursively, files inside subdirectories won't be committed) 146 | git: 147 | # When true, untracked files will automatically be added 148 | auto-add: true 149 | ``` 150 | 151 | If you want to exclude some files when using `files: ["."]`, just use your regular `.gitignore` file. 152 | 153 | --- 154 | 155 | ## Contributions 156 | Pull requests and issues are welcome ! 157 | --------------------------------------------------------------------------------