1
0
mirror of https://github.com/beego/bee.git synced 2024-11-24 23:30:55 +00:00
Commit Graph

967 Commits

Author SHA1 Message Date
astaxie
b4a92f7521 Merge pull request #336 from sergeylanzman/go-install-default
Go install default
2016-12-20 16:56:01 +08:00
astaxie
54537ee8ee fix the generate 2016-12-20 16:54:03 +08:00
astaxie
ea51b6e831 Merge pull request #339 from onealtang/master
fix #338 failed to generate swagger doc
2016-12-20 16:52:43 +08:00
tangshancheng
b0928f186f fix #338 failed to generate swagger doc 2016-12-14 23:57:59 +08:00
astaxie
2ccbbb47e4 v1.6.1 2016-12-13 05:04:37 +08:00
astaxie
4e532f49f6 Merge pull request #338 from sergeylanzman/fix-swagger-generate-bug
Fix swagger generate bug
2016-12-13 05:03:20 +08:00
Sergey Lanzman
cfc8658ab2 fix bug with generate swagger. 2016-12-12 22:35:39 +02:00
Sergey Lanzman
b6d935523a add inet type for Postgres 2016-12-12 22:34:13 +02:00
Sergey Lanzman
aa195ecd46 Enable go install by default to reduce build time without gopm. 2016-12-12 22:30:50 +02:00
Sergey Lanzman
98cd088409 parse all packages this long operations
run only on docs generate
2016-12-12 22:27:54 +02:00
Sergey Lanzman
2ff99d4ea7 Merge pull request #1 from beego/master
update master
2016-12-12 20:21:34 +02:00
Faissal Elamraoui
a0020d65af Fix bee generate output in watch.go
This removes the output of bee generate in watch.go as it shows
the entire logger output (including the banner). Added also the ability
to catch the exec.Command error instead of returning the exit status.
2016-12-11 23:39:59 +01:00
vCaesar
998e110c6c Update fsnotify 2016-12-09 01:31:24 +08:00
astaxie
9786cb47ea bee 1.6.0 2016-12-05 23:17:15 +08:00
astaxie
28324a2756 add vendor 2016-12-05 23:07:45 +08:00
Faissal Elamraoui
71e23417c6 Merge pull request #331 from amrfaissal/fix-330
Removes the temp dir once bee pack is done
2016-12-05 14:54:06 +01:00
Faissal Elamraoui
1f917e9900 Merge pull request #329 from amrfaissal/enhance-help-and-usage
Enhances the commands help and usage output
2016-12-05 14:53:46 +01:00
Faissal Elamraoui
8dca816aac Fixed padding for printing an option 2016-12-05 14:52:37 +01:00
Faissal Elamraoui
592eac9974 Fixed a typo 2016-12-05 14:40:15 +01:00
Faissal Elamraoui
ce71c916d5 Displays the default value of a command flag
Added ability to display the default value of a command's flag,
truncated in case it contains a column (:). Also instead of displaying
the entire command usage/help in case of an undefined flag, output a
small message with "bee help cmd".
2016-12-04 16:30:38 +01:00
Faissal Elamraoui
b42874b967 This fixes #330
Removes the generated temp directory to avoid fulling the /tmp after
running bee pack a few times.
2016-12-04 14:48:42 +01:00
Faissal Elamraoui
73aa44e1a7 Added a few tweaks to the folder structure in the long description 2016-12-03 16:06:46 +01:00
Faissal Elamraoui
e927a9193d Enhances the commands short and long description
This enhances the output of bee help/usage by using colored and bold text to
highlight examples.
2016-12-03 11:54:41 +01:00
Faissal Elamraoui
196e732e19 Removes the use of template/html
This uses the template/text instead because template/html does not escape
quotes and replaces them with their HTML codes. Added two more util
functions to make it easy to use bold and colored text in the command long
description.
2016-12-03 11:46:10 +01:00
Faissal Elamraoui
6cf7b5d518 Enhanced the usage and help output
Now each command has its own output destination, which can be changed
using a SetOutput(writer) method. Added ability to display the options
of each command.
2016-12-01 21:18:20 +01:00
Faissal Elamraoui
a6ce37ddf3 Merge pull request #326 from amrfaissal/more-colors
Adds more colors to color.go
2016-11-23 16:00:53 +01:00
Faissal Elamraoui
1c0a569116 Fixed a typo 2016-11-23 15:58:38 +01:00
Faissal Elamraoui
621dbf2ed9 Added black and white colors 2016-11-23 15:58:21 +01:00
Faissal Elamraoui
1dc55894c9 Merge pull request #322 from amrfaissal/fix-dirparser-and-enhancements
Fix directory parser and enhancements
2016-11-22 10:39:41 +01:00
Faissal Elamraoui
5defe7c368 Fix merge conflict 2016-11-22 10:33:11 +01:00
Faissal Elamraoui
215ef4485a Merge pull request #324 from amrfaissal/nonbeego-support
Removes the check if the current path is a Beego project
2016-11-22 09:58:03 +01:00
Faissal Elamraoui
e39dc9fb7f #323: Removes the check if the current path is a Beego project 2016-11-21 15:23:08 +01:00
Faissal Elamraoui
ac935ad4e0 Merge pull request #321 from r0nni3/r0nni3-patch-isnull-filter
isnull filter needs boolean value for the Filter function
2016-11-20 22:42:54 +01:00
Faissal Elamraoui
03f2057eb0 Added PreRun phase to Command struct
Now each command has a PreRun function that will execute before calling
the Run() function. This allows to show the banner and do some pre-check
work. Also moved parsePackagesFromDir() to the main function to avoid
getting called each time 'bee' is invoked.
2016-11-20 22:28:52 +01:00
Faissal Elamraoui
35384b463e This allows the isBeegoProject() function to do the walking inside a Goroutine 2016-11-20 11:55:44 +01:00
Faissal Elamraoui
7fcbba0f53 Initialize the logger templates inside the logger singleton once (and only once) 2016-11-20 11:54:12 +01:00
Faissal Elamraoui
ab39926c41 Enhances the package dir parser
The function parsePackagesFromDir() was panicing when it encounter some
"invalid" Go files. Instead, this will allow it to display a warning and
continue the execution of the command.
2016-11-20 11:46:42 +01:00
Faissal Elamraoui
eac9dc25d3 Merge pull request #319 from amrfaissal/fix-debug-log
Fixes debug log message
2016-11-18 22:02:38 +01:00
Ronnie A. Baez Sesto
fb93677604 isnull filter needs boolean value for the Filter function
With changes suggested by @amrfaissal
2016-11-16 16:39:54 -04:00
Faissal Elamraoui
6b27ef186a This makes the logger instance a singleton 2016-11-16 12:33:01 +01:00
Faissal Elamraoui
21fc177551 Acquire lock when logging 2016-11-15 12:25:37 +01:00
Faissal Elamraoui
deacdaa667 Fixes the filename and lineNo in debug log message 2016-11-14 18:05:34 +01:00
astaxie
9aaade6cbb Merge pull request #318 from hcrgm/patch-1
Swagger: parse @LicenseUrl first
2016-11-14 21:10:07 +08:00
hcrgm
63b5a81104 Update g_docs.go 2016-11-14 19:07:22 +08:00
astaxie
c3c264ddb5 Merge pull request #317 from amrfaissal/centralized-logging
New logging infrastructure for Bee
2016-11-14 09:24:44 +08:00
Faissal Elamraoui
cf7aef47f0 Implementing the new logging infrastructure
Moved logging to the new logging infrastructure by removing the use of
ColorLog() function. Added more documentation. Also fixed some typos in
comments and function names.
2016-11-13 15:14:48 +01:00
Faissal Elamraoui
0e54238559 Included leading zeros for the log record ID 2016-11-13 15:06:34 +01:00
Faissal Elamraoui
cb47cd011c Moved all utility functions to one place 2016-11-13 14:12:38 +01:00
Faissal Elamraoui
af8e06cd53 Added more helper functions to output colored text 2016-11-13 14:10:11 +01:00
Faissal Elamraoui
b4e13b5529 Logging infrastructure for Bee
logger.go implements the logging infrastructure for Bee.
The end user can set the preferred backend (that implements io.Writer).
It supports multiple logging levels, and logs are sent to the output
colored based on each level. Debug logs are treated differently, i.e.
they will be sent to the output unless DEBUG_ENABLED is set to "1".
2016-11-13 13:46:32 +01:00