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
astaxie
04c0f9d7b4
output error
2016-11-10 16:51:50 +08:00
astaxie
f7001294a9
fix #312
2016-11-09 20:17:55 +08:00
astaxie
a3c1d42dab
Merge pull request #305 from xiaoqiang0/develop
...
Swagger: support default value columns for @Param
2016-11-07 22:47:16 +08:00
astaxie
dcc0fb67d2
Merge pull request #306 from amrfaissal/rewrite-load-conf
...
Rewrite configuration loading
2016-11-07 22:45:17 +08:00
Faissal Elamraoui
440c5e967c
Rewrite configuration loading
...
Rewrited loadConfig() function to walk the project directory
looking for bee.json and Beefile. If no configuration file
found, it fallbacks to the default configuration. In case
of an error, a log message is printed to the console.
2016-11-03 16:48:09 +01:00
Zhang Qiang
3199a019d7
Swagger: support default value columns for @Param
...
This patch support default value after 'type' column if total
columns is six.
This enhancement also is compatiable with old five columns.
2016-11-03 23:18:05 +08:00
astaxie
4ff3cf5ce8
Merge pull request #303 from Lao-liu/develop
...
Update hprose 2.0
2016-11-01 19:50:59 +08:00
Laoliu
0ccc6306b7
Update hprose 2.0
2016-11-01 18:59:32 +08:00
astaxie
50fafd72e8
Merge pull request #296 from amrfaissal/fix-goversion
...
Fix GoVersion value
2016-10-24 10:20:35 +08:00
Faissal Elamraoui
5cc09e5c6c
This fixes #295
2016-10-22 15:44:22 +02:00
astaxie
1d8aa1a48d
Merge pull request #292 from ihippik/patch-4
...
Default values in structure
2016-10-11 10:16:51 +08:00
Konstantin
7c7e75435c
Update g_docs.go
2016-10-10 19:49:33 +03:00