...
This commit is contained in:
@@ -16,7 +16,7 @@ pub mut:
|
||||
// session ?&base.Session
|
||||
}
|
||||
|
||||
// get a new playbook, can scan a directory or just add text
|
||||
// get a new plbook, can scan a directory or just add text
|
||||
// ```
|
||||
// path string
|
||||
// text string
|
||||
@@ -26,7 +26,7 @@ pub mut:
|
||||
// git_reset bool
|
||||
// session &base.Session
|
||||
// ```
|
||||
pub fn new(args_ PlayBookNewArgs) !PlayBook {
|
||||
pub fn new(args_ PlayBookNewArgs) ! {
|
||||
mut args := args_
|
||||
|
||||
mut c := base.context() or { return error('failed to get context: ${err}') }
|
||||
|
||||
@@ -189,7 +189,7 @@ pub fn (plbook PlayBook) hashkey() string {
|
||||
return bs.hex()
|
||||
}
|
||||
|
||||
// check if playbook is empty,if not will give error, means there are actions left to be exected
|
||||
// check if plbook is empty,if not will give error, means there are actions left to be exected
|
||||
pub fn (mut plbook PlayBook) empty_check() ! {
|
||||
mut actions := []&Action{}
|
||||
for a in plbook.actions {
|
||||
|
||||
Reference in New Issue
Block a user