Skip to content

Commit

Permalink
fixed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
MarlinKuhn committed Jan 9, 2025
1 parent 060704d commit 2adb345
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
[![https://github.com/zzwx/fresh](./docs/gobadge.svg)](https://pkg.go.dev/github.com/zzwx/fresh)
[![https://github.com/MarlinKuhn/fresh](./docs/gobadge.svg)](https://pkg.go.dev/github.com/MarlinKuhn/fresh)

# Fresh

[Fresh](https://github.com/zzwx/fresh) is a command-line tool for hot reload that builds and (re)starts your written in Go application, including a web app, every time you save a `.go` or template file or any desired files you specify using configuration.
[Fresh](https://github.com/MarlinKuhn/fresh) is a command-line tool for hot reload that builds and (re)starts your written in Go application, including a web app, every time you save a `.go` or template file or any desired files you specify using configuration.
It is not aiming to gracefully shutdown the server, but rather simply restart it, killing the other process.

## Installation

* `go install github.com/zzwx/fresh@latest` - latest release.
* `go install github.com/zzwx/fresh@master` - bleeding edge.
* `go install github.com/MarlinKuhn/fresh@latest` - latest release.
* `go install github.com/MarlinKuhn/fresh@master` - bleeding edge.

## History

This fork is taken from original [fresh](https://github.com/gravityblast/fresh) because the author, [Andrea Franz](http://gravityblast.com), announced it as unmaintained.
Several changes were pulled from the Roger Russel's [fresher](https://github.com/roger-russel/fresher.git) repository. All the authors are appropriately acknowledged using the `git` history.
I kept the name **fresh** because it is easier to remember.

After installing with `go install github.com/zzwx/fresh@latest`, fresh can be started as simply `fresh -g` to generate a default config file. This prevents running `fresh` on an unexpected folder.
After installing with `go install github.com/MarlinKuhn/fresh@latest`, fresh can be started as simply `fresh -g` to generate a default config file. This prevents running `fresh` on an unexpected folder.
When `fresh` runs on a folder that contains `.fresh.yaml` (default name), it will watch for file events, and every time you create / modify or delete a file it will build and restart the application.

If `go build` returns an error, it will create a log file in the `./tmp` (configurable) folder and keep watching, attempting to rebuild. It will also attempt to kill previously created processes.
Expand Down Expand Up @@ -187,7 +187,7 @@ log_color_app:
debug: true # Set to false to make fresh less verbose
```

More examples can be seen [here](https://github.com/zzwx/fresh/tree/master/docs/_examples)
More examples can be seen [here](https://github.com/MarlinKuhn/fresh/tree/master/docs/_examples)

## Changes tracking

Expand Down
2 changes: 1 addition & 1 deletion docs/_examples/fresh-yaml-not-in-root/config/fresh.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 1
root: .
main_path: github.com/zzwx/fresh/docs/_examples/fresh-yaml-not-in-root/src
main_path: github.com/MarlinKuhn/fresh/docs/_examples/fresh-yaml-not-in-root/src
tmp_path: ./tmp
build_name: runner-build
build_args: ""
Expand Down
2 changes: 1 addition & 1 deletion docs/_examples/main-not-in-root/.fresh.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 1
root: .
main_path: github.com/zzwx/fresh/docs/_examples/main-not-in-root/src
main_path: github.com/MarlinKuhn/fresh/docs/_examples/main-not-in-root/src
tmp_path: ./tmp
build_name: runner-build
build_args: ""
Expand Down
8 changes: 4 additions & 4 deletions docs/gobadge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ If `go build` returns an error, it will create a log file in the tmp folder and
It will also attempt to kill previously created processes.
This is a fork of an original fresh (https://github.com/pilu/fresh) that is announced as unmaintained.
*/
package main

import (
"flag"
"fmt"
"github.com/zzwx/fresh/runner"
"os"

"github.com/MarlinKuhn/fresh/runner"
)

const VERSION = "1.3.4"
const VERSION = "1.0.2"

func main() {
var version *bool
Expand Down

0 comments on commit 2adb345

Please sign in to comment.