From 4388fc0ba6454c2b49a474650a8b1352dd97488f Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Sat, 29 May 2021 10:28:09 +0200 Subject: [PATCH] feat(migrate): add package handling --- .../test/base/expected/match/packages/foo/custom.yml | 3 +++ .../test/base/expected/match/packages/foo/package.yml | 3 +++ espanso-migrate/test/base/legacy/packages/foo/README.md | 9 +++++++++ espanso-migrate/test/base/legacy/packages/foo/custom.yml | 6 ++++++ .../test/base/legacy/packages/foo/package.yml | 6 ++++++ 5 files changed, 27 insertions(+) create mode 100644 espanso-migrate/test/base/expected/match/packages/foo/custom.yml create mode 100644 espanso-migrate/test/base/expected/match/packages/foo/package.yml create mode 100644 espanso-migrate/test/base/legacy/packages/foo/README.md create mode 100644 espanso-migrate/test/base/legacy/packages/foo/custom.yml create mode 100644 espanso-migrate/test/base/legacy/packages/foo/package.yml diff --git a/espanso-migrate/test/base/expected/match/packages/foo/custom.yml b/espanso-migrate/test/base/expected/match/packages/foo/custom.yml new file mode 100644 index 0000000..1f2697a --- /dev/null +++ b/espanso-migrate/test/base/expected/match/packages/foo/custom.yml @@ -0,0 +1,3 @@ +matches: + - trigger: "custom" + replace: "match" \ No newline at end of file diff --git a/espanso-migrate/test/base/expected/match/packages/foo/package.yml b/espanso-migrate/test/base/expected/match/packages/foo/package.yml new file mode 100644 index 0000000..dc0b3c5 --- /dev/null +++ b/espanso-migrate/test/base/expected/match/packages/foo/package.yml @@ -0,0 +1,3 @@ +matches: + - trigger: "package_foo" + replace: "package_bar" \ No newline at end of file diff --git a/espanso-migrate/test/base/legacy/packages/foo/README.md b/espanso-migrate/test/base/legacy/packages/foo/README.md new file mode 100644 index 0000000..b82846c --- /dev/null +++ b/espanso-migrate/test/base/legacy/packages/foo/README.md @@ -0,0 +1,9 @@ +--- +package_name: "foo" +package_title: "Foo" +package_desc: "Foo package" +package_version: "0.1.0" +package_author: "Federico Terzi" +package_repo: "https://github.com/federico-terzi/espanso-hub-core" +--- +Test package \ No newline at end of file diff --git a/espanso-migrate/test/base/legacy/packages/foo/custom.yml b/espanso-migrate/test/base/legacy/packages/foo/custom.yml new file mode 100644 index 0000000..13c3b1d --- /dev/null +++ b/espanso-migrate/test/base/legacy/packages/foo/custom.yml @@ -0,0 +1,6 @@ +name: foo +parent: default + +matches: + - trigger: "custom" + replace: "match" \ No newline at end of file diff --git a/espanso-migrate/test/base/legacy/packages/foo/package.yml b/espanso-migrate/test/base/legacy/packages/foo/package.yml new file mode 100644 index 0000000..d216135 --- /dev/null +++ b/espanso-migrate/test/base/legacy/packages/foo/package.yml @@ -0,0 +1,6 @@ +name: foo +parent: default + +matches: + - trigger: "package_foo" + replace: "package_bar" \ No newline at end of file