A Neovim plugin for Yaclt.
use {'yaclt/yaclt.nvim', requires = 'nvim-lua/plenary.nvim'}
Plug 'nvim-lua/plenary.nvim'
Plug 'yaclt/yaclt.nvim'
Configure the plugin by using the setup function. Not required if you want to use a globally installed
yaclt
without default arguments.
Defaults:
require('yaclt').setup({
cmd = 'yaclt', -- can also change this to ./node_modules/.bin/yaclt to use a version from package.json
args = {}, -- you can specify default args here that will be passed to yaclt, e.g. { '--changeType', 'NEW' }
})
For yaclt
command arguments and documentation, see Yaclt docs.
require('yaclt').new(args) -- e.g. require('yaclt').new({ '--changeType', 'NEW', '-m', 'Message here' })
require('yaclt').validate(args)
require('yaclt').prepareRelease(args) -- e.g. require('yaclt').prepareRelease({ '--releaseNumber', '0.5.0' })
There is a single editor command, Yaclt
, that has the same interface as the CLI. For example:
:Yaclt new --changeType NEW -m "Description of some new change"
:Yaclt validate
:Yaclt prepare-release --releaseNumber 1.2.3