summaryrefslogtreecommitdiffstats
path: root/commands/version.go
AgeCommit message (Collapse)Author
2018-12-06Add tpl/site and tpl/hugoBjørn Erik Pedersen
This means that the current `.Site` and ´.Hugo` is available as a globals, so you can do `site.IsServer`, `hugo.Version` etc. Fixes #5470 Fixes #5467 Fixes #5503
2018-10-16commands: Show server error info in browserBjørn Erik Pedersen
The main item in this commit is showing of errors with a file context when running `hugo server`. This can be turned off: `hugo server --disableBrowserError` (can also be set in `config.toml`). But to get there, the error handling in Hugo needed a revision. There are some items left TODO for commits soon to follow, most notable errors in content and config files. Fixes #5284 Fixes #5290 See #5325 See #5324
2018-07-08Add "extended" to "hugo version"Anthony Fok
Fixes #4913
2018-05-14commands: Do not show empty BuildDate in versionAnthony Fok
2018-04-11commands: Make the hugo command non-globalBjørn Erik Pedersen
See #4598
2018-04-11comands: Make the config command non-globalBjørn Erik Pedersen
See #4598
2018-04-11commands: Make the new commands non-globalBjørn Erik Pedersen
See #4598
2018-01-14commands: Remove superflous BuildDate logicBjørn Erik Pedersen
Fixes #4272
2017-06-13Run gofmt to get imports in line vs gohugoio/hugoBjørn Erik Pedersen
2017-06-13all: Update import paths to gohugoio/hugoBjørn Erik Pedersen
2017-04-24Automate the Hugo release processBjørn Erik Pedersen
This commit adds a work flow aroung GoReleaser to get the Hugo release process automated and more uniform: * It can be run fully automated or in two steps to allow for manual edits of the relase notes. * It supports both patch and full releases. * It fetches author, issue, repo info. etc. for the release notes from GitHub. * The file names produced are mainly the same as before, but we no use tar.gz as archive for all Unix versions. * There isn't a fully automated CI setup in place yet, but the release tag is marked in the commit message with "[ci deploy]" Fixes #3358
2017-01-06commands: Show OS and ARCH in version outputCameron Moore
2016-11-22all: Use jww instead of fmt for printingbogem
This is an attempt to unify method for printing.
2016-10-05Add hugo env commandBjørn Erik Pedersen
Useful for bug reports. Fixes #2523
2016-03-14commands: Remove unused codeBjørn Erik Pedersen
2015-12-07Fix copyright headers in source filesBjørn Erik Pedersen
Still need to add some missing headers and an AUTHORS file. See #1646
2015-12-02One more error fix in the server commandAnthony Fok
And some other small code clean-up. See #1502
2015-12-02Improve error handling in commandsBjørn Erik Pedersen
Cobra, the CLI commander in use in Hugo, has some long awaited improvements in the error handling department. This enables a more centralized error handling approach. This commit introduces that by changing all the command funcs to `RunE`: * The core part of the error logging, usage logging and `os.Exit(-1)` is now performed in one place and that one place only. * The usage text is now only shown on invalid arguments etc. (user errors) Fixes #1502
2015-11-23Change the license to Apache 2.0Steve Francia
2015-08-04Improve formatting of Hugo command descriptionsAnthony Fok
Trying to make them look good both in the terminal (`hugo help [command]`) and in the web browser (http://gohugo.io/commands/). :-)
2015-03-18Refactor Hugo versionbep
Put version handling into the helpers package so it can be used by many, and split version and suffix to make it possible to calculate the next Hugo version.
2015-02-23Use osext on GitHubbep
Fixes #922
2015-01-28Version uses binary name instead of hugoDan Hersam
On Windows the binary name is hugo.exe and running hugo version results in this error: GetFileAttributesEx D:\Dev\Go\gopath\bin\hugo: The system cannot find the file specified. This fixes that error and allows the binary name to be something other than hugo on any OS.
2015-01-19Added top level .Hugo variable with version, commit and generator ↵Derek Perkins
information + docs Added Version, CommitHash and BuildDate to hugolib/hugo.go and used it in build Removed commitHash and buildDate from commands/version.go and used hugolib vars Removed getDateFormat function from commands/version.go Conflicts: README.md docs/content/templates/variables.md
2014-12-09Add timezone to buildDatebep
2014-12-08Always use RFC3339 for version date format.Austin Ziegler
Fixes #695 reported by @synful. - No longer tries to load a configuration. - Because of this the version tests are no longer necessary.
2014-11-24fix version command so that it will work with all supported config formats ↵Joel Scoble
and added tests
2014-11-13converted path 2 filepathJoel Scoble
2014-11-13Params map has string as keybep
Related to issue #540 and commit 3c22ca7c84456b19f2a017719b1533902594e672
2014-11-01540: add support for build information output to version commandJoel Scoble
2014-09-03Bumping Version to 0.13-DEVspf13
2014-09-01Bumping Versionv0.12spf13
2014-06-03Setting new versionspf13
2014-05-29Actually bumping the versionspf13
2014-03-31Adding support for logging & verbose logging. Consolidation of error ↵spf13
handling. Integration of jWalterWeatherman library. Fixed #137
2014-03-04Bumping version to v0.11-devspf13
2014-03-01bumping version for 0.10spf13
2013-11-15Version bump 0.9spf13
2013-09-29Change the interface to use commands and flags instead of just flags.spf13
Better organization of main (controller style) code.