Skip to content

Commit

Permalink
removed cp and exif (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
bzimmer authored May 29, 2024
1 parent 9100d3d commit f61fc85
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 984 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist/
tmp/
env/
17 changes: 10 additions & 7 deletions cmd/ma/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,18 @@ func flags() []cli.Flag {
&cli.BoolFlag{
Name: "monochrome",
Required: false,
Usage: "disable colored output",
Usage: "disable colored loggingoutput",
Value: false,
},
&cli.BoolFlag{
Name: "debug",
Required: false,
Usage: "enable verbose debugging",
Value: false,
},
&cli.BoolFlag{
Name: "trace",
Required: false,
Usage: "enable debugging of http requests",
Value: false,
},
Expand Down Expand Up @@ -99,8 +105,8 @@ func mg(c *cli.Context) func() *smugmug.Client {
client, err := smugmug.NewClient(
smugmug.WithConcurrency(c.Int("concurrency")),
smugmug.WithHTTPClient(httpclient),
smugmug.WithPretty(c.Bool("debug")),
smugmug.WithHTTPTracing(c.Bool("debug")))
smugmug.WithPretty(c.Bool("trace")),
smugmug.WithHTTPTracing(c.Bool("trace")))
if err != nil {
panic(err)
}
Expand Down Expand Up @@ -130,7 +136,7 @@ func main() {
}

grab := &http.Client{}
if c.Bool("debug") {
if c.Bool("trace") {
grab.Transport = &httpwares.VerboseTransport{}
}

Expand All @@ -147,7 +153,6 @@ func main() {
Metrics: metric,
Encoder: json.NewEncoder(writer),
Fs: afero.NewOsFs(),
Exif: ma.NewGoExif(),
Language: language.English,
Start: time.Now(),
},
Expand All @@ -157,8 +162,6 @@ func main() {
},
After: ma.Metrics,
Commands: []*cli.Command{
ma.CommandCopy(),
ma.CommandExif(),
ma.CommandExport(),
ma.CommandFind(),
ma.CommandList(),
Expand Down
290 changes: 0 additions & 290 deletions cp.go

This file was deleted.

Loading

0 comments on commit f61fc85

Please sign in to comment.