From c70f697bd2355950e51f4b072e52ae4d0db8eac3 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 19 Sep 2021 17:45:11 +0300 Subject: fix: add 'impl' to bindings file for current Subplot Sponsored-by: author --- subplot/bumper.yaml | 48 +++++++++++++++++++++++++++++++++++------------- 1 file changed, 35 insertions(+), 13 deletions(-) diff --git a/subplot/bumper.yaml b/subplot/bumper.yaml index 83aae28..fe521fb 100644 --- a/subplot/bumper.yaml +++ b/subplot/bumper.yaml @@ -1,32 +1,54 @@ - given: "an installed Bumper" - function: install_bumper + impl: + python: + function: install_bumper - given: "file {filename} is executable" - function: chmod_exec + impl: + python: + function: chmod_exec - given: "all files in {dirname} are committed to git" - function: git_init_and_commit_everything + impl: + python: + function: git_init_and_commit_everything - given: "the HEAD commit in {dirname} is {varname}" - function: remember_HEAD - + impl: + python: + function: remember_HEAD + - when: "I run, in {dirname}, {argv0}{args:text}" - function: run_command_in_directory - + impl: + python: + function: run_command_in_directory + - when: "I try to run, in {dirname}, {argv0}{args:text}" - function: try_to_run_command_in_directory + impl: + python: + function: try_to_run_command_in_directory - then: "only files {filenames:text} exist in {dirname}" - function: only_these_files_exist_in + impl: + python: + function: only_these_files_exist_in - then: "in {dirname}, git tag {tag} is a signed tag" - function: git_tag_exists + impl: + python: + function: git_tag_exists - then: "all changes in {dirname} are committed" - function: git_working_tree_is_clean + impl: + python: + function: git_working_tree_is_clean - then: "file {file1} is newer than {file2}" - function: file_is_newer_than_other_file + impl: + python: + function: file_is_newer_than_other_file - then: "file {filename} is committed to git" - function: file_is_in_git + impl: + python: + function: file_is_in_git -- cgit v1.2.1