Skip to content

Commit

Permalink
feat(cli) deprecate 'kong compile'
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Jul 24, 2017
1 parent 98f10a5 commit dbe04cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kong/cmd/compile.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
local prefix_handler = require "kong.cmd.utils.prefix_handler"
local conf_loader = require "kong.conf_loader"
local log = require "kong.cmd.utils.log"

local function execute(args)
log.warn("'kong compile' is deprecated, use 'kong prepare' instead")

local conf = assert(conf_loader(args.conf))
local kong_nginx_conf = assert(prefix_handler.compile_kong_conf(conf))
print(kong_nginx_conf)
Expand All @@ -10,6 +13,8 @@ end
local lapp = [[
Usage: kong compile [OPTIONS]
[DEPRECATED] This command is deprecated. Use 'kong prepare' instead.
Compile the Nginx configuration file containing Kong's servers
contexts from a given Kong configuration file.
Expand Down

0 comments on commit dbe04cd

Please sign in to comment.