id = "hexo" name = "Hexo" description = "Command line interface for Hexo, a static site generator." homepage = "https://hexo.io" executables = ["hexo"] [commands] format = 1 label = "Hexo" description = "Common Hexo blog jobs: create a post, generate the site and run the local server. Deploy, migrate and init are left out." quality = "ai-draft" base = "fig:hexo" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/hexo.ts" license = "MIT" [[commands.subcommand]] path = ["new"] label = "Create a post" description = "Create a new article from a layout." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/hexo.ts" license = "MIT" [[commands.subcommand.field]] id = "layout" label = "Layout" type = "string" position = 0 suggestions = [{ value = "post", label = "post" }, { value = "page", label = "page" }, { value = "draft", label = "draft" }] sources = ["fig"] [[commands.subcommand.field]] id = "title" label = "Title" type = "string" position = 1 sources = ["fig"] [[commands.subcommand.field]] id = "slug" label = "Slug" type = "string" option = ["--slug", "-s"] sources = ["fig"] [[commands.subcommand.field]] id = "replace" label = "Replace existing" type = "boolean" option = ["--replace", "-r"] effect = "overwrite" sources = ["fig"] [[commands.subcommand.task]] id = "new-post" label = "New post" fields = ["layout", "title", "slug", "replace"] required = ["title"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["layout", "title", "slug", "replace"] [[commands.subcommand]] path = ["generate"] label = "Generate static files" description = "Generate the static site into the public folder." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/hexo.ts" license = "MIT" [[commands.subcommand.field]] id = "deploy" label = "Deploy afterwards" type = "boolean" option = ["--deploy", "-d"] sources = ["fig"] [[commands.subcommand.field]] id = "force" label = "Force regenerate" type = "boolean" option = ["--force", "-f"] sources = ["fig"] [[commands.subcommand.field]] id = "watch" label = "Watch for changes" type = "boolean" option = ["--watch", "-w"] sources = ["fig"] [[commands.subcommand.field]] id = "bail" label = "Fail on errors" type = "boolean" option = ["--bail", "-b"] sources = ["fig"] [[commands.subcommand.task]] id = "generate" label = "Generate" fields = ["force", "watch", "bail", "deploy"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["force", "watch", "bail", "deploy"] [[commands.subcommand]] path = ["server"] label = "Start local server" description = "Serve the site locally, by default at http://localhost:4000/." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/hexo.ts" license = "MIT" [[commands.subcommand.field]] id = "ip" label = "IP address" type = "string" option = ["--ip", "-i"] sources = ["fig"] [[commands.subcommand.field]] id = "port" label = "Port" type = "integer" option = ["--port", "-p"] sources = ["fig"] [[commands.subcommand.field]] id = "static" label = "Static only" type = "boolean" option = ["--static", "-s"] sources = ["fig"] [[commands.subcommand.field]] id = "open" label = "Open in browser" type = "boolean" option = ["--open", "-o"] sources = ["fig"] [[commands.subcommand.task]] id = "serve" label = "Serve locally" fields = ["port", "ip", "static", "open"] required = [] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["port", "ip", "static", "open"]