diff --git a/TODO.txt b/TODO.txt index bc427e1..7751c30 100644 --- a/TODO.txt +++ b/TODO.txt @@ -3,3 +3,4 @@ Pending tasks (create tickets): - refactor plugin settings loading `settings_maps.get(plugin_name, {} ).get("prop") => plugin_setting("plugin_name", "prop")` so that +- review logging (up messages to stderr, application to stdout?) \ No newline at end of file diff --git a/demos/10_simple_prompt.sh b/demos/10_simple_prompt.sh deleted file mode 100644 index 877b61f..0000000 --- a/demos/10_simple_prompt.sh +++ /dev/null @@ -1,6 +0,0 @@ -# in dev mode... -alias up="poetry run up" - -up ansible --version - -up ansible --version | head -n1 | awk '{print $2}' diff --git a/demos/10_simple_prompts.sh b/demos/10_simple_prompts.sh new file mode 100644 index 0000000..d324e4d --- /dev/null +++ b/demos/10_simple_prompts.sh @@ -0,0 +1,16 @@ +# Setup "up" alias in dev mode if necessary +alias up="poetry run up" + +# Runs `ansible --version` through up +# The ansible binary will be executed inside a container +up ansible --version + +# You can check that `ansible` is not installed in the system +type ansible + +# If there is no plugin, like there is for ansible +# up will try default container settings (Fedora Linux) +up cat /etc/fedora-release + +# TODO: this one is broken +up "ansible --version | head -n1" | awk '{print $2}' diff --git a/demos/15_up_with_docklets_run.sh b/demos/15_up_with_docklets_run.sh new file mode 100644 index 0000000..6203556 --- /dev/null +++ b/demos/15_up_with_docklets_run.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# image fedora:39 +# volume ... +# var ... +# port ... + + +echo "Thank you for running!" +echo "Hello $SOMEONE" +cat /etc/fedora-release +echo "Almost done..." +sleep 2 +echo "Done" diff --git a/demos/15_up_with_doclets.sh b/demos/15_up_with_doclets.sh new file mode 100644 index 0000000..c4b36b9 --- /dev/null +++ b/demos/15_up_with_doclets.sh @@ -0,0 +1,2 @@ + +up ./15_do_the_trick.sh diff --git a/demos/20_plugins.sh b/demos/20_plugins.sh new file mode 100644 index 0000000..cd36909 --- /dev/null +++ b/demos/20_plugins.sh @@ -0,0 +1,2 @@ +# List installed plugins +up plugin list \ No newline at end of file diff --git a/demos/20_prompt_substitution.sh b/demos/99_prompt_substitution.sh similarity index 100% rename from demos/20_prompt_substitution.sh rename to demos/99_prompt_substitution.sh diff --git a/up_splat/poetry.lock b/up_splat/poetry.lock index 3f792c9..1ec554f 100644 --- a/up_splat/poetry.lock +++ b/up_splat/poetry.lock @@ -2,13 +2,13 @@ [[package]] name = "pluggy" -version = "1.3.0" +version = "1.4.0" description = "plugin and hook calling mechanisms for python" optional = false python-versions = ">=3.8" files = [ - {file = "pluggy-1.3.0-py3-none-any.whl", hash = "sha256:d89c696a773f8bd377d18e5ecda92b7a3793cbe66c87060a6fb58c7b6e1061f7"}, - {file = "pluggy-1.3.0.tar.gz", hash = "sha256:cf61ae8f126ac6f7c451172cf30e3e43d3ca77615509771b3a984a0730651e12"}, + {file = "pluggy-1.4.0-py3-none-any.whl", hash = "sha256:7db9f7b503d67d1c5b95f59773ebb58a8c1c288129a88665838012cfb07b8981"}, + {file = "pluggy-1.4.0.tar.gz", hash = "sha256:8c85c2876142a764e5b7548e7d9a0e0ddb46f5185161049a79b7e974454223be"}, ] [package.extras] diff --git a/upcli/poetry.lock b/upcli/poetry.lock index a06fb22..7bd21bf 100644 --- a/upcli/poetry.lock +++ b/upcli/poetry.lock @@ -2,13 +2,13 @@ [[package]] name = "ruamel-yaml" -version = "0.18.5" +version = "0.18.6" description = "ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order" optional = false python-versions = ">=3.7" files = [ - {file = "ruamel.yaml-0.18.5-py3-none-any.whl", hash = "sha256:a013ac02f99a69cdd6277d9664689eb1acba07069f912823177c5eced21a6ada"}, - {file = "ruamel.yaml-0.18.5.tar.gz", hash = "sha256:61917e3a35a569c1133a8f772e1226961bf5a1198bea7e23f06a0841dea1ab0e"}, + {file = "ruamel.yaml-0.18.6-py3-none-any.whl", hash = "sha256:57b53ba33def16c4f3d807c0ccbc00f8a6081827e81ba2491691b76882d0c636"}, + {file = "ruamel.yaml-0.18.6.tar.gz", hash = "sha256:8b27e6a217e786c6fbe5634d8f3f11bc63e0f80f6a5890f28863d9c45aac311b"}, ] [package.dependencies] diff --git a/uplib/poetry.lock b/uplib/poetry.lock index d0afde5..d6dffab 100644 --- a/uplib/poetry.lock +++ b/uplib/poetry.lock @@ -31,13 +31,13 @@ tests-no-zope = ["attrs[tests-mypy]", "cloudpickle", "hypothesis", "pympler", "p [[package]] name = "certifi" -version = "2023.11.17" +version = "2024.2.2" description = "Python package for providing Mozilla's CA Bundle." optional = false python-versions = ">=3.6" files = [ - {file = "certifi-2023.11.17-py3-none-any.whl", hash = "sha256:e036ab49d5b79556f99cfc2d9320b34cfbe5be05c5871b51de9329f0603b0474"}, - {file = "certifi-2023.11.17.tar.gz", hash = "sha256:9b469f3a900bf28dc19b8cfbf8019bf47f7fdd1a65a1d4ffb98fc14166beb4d1"}, + {file = "certifi-2024.2.2-py3-none-any.whl", hash = "sha256:dc383c07b76109f368f6106eee2b593b04a011ea4d55f652c6ca24a754d1cdd1"}, + {file = "certifi-2024.2.2.tar.gz", hash = "sha256:0569859f95fc761b18b45ef421b1290a0f65f147e92a1e5eb3e635f9a5e4e66f"}, ] [[package]] @@ -299,13 +299,13 @@ files = [ [[package]] name = "pluggy" -version = "1.3.0" +version = "1.4.0" description = "plugin and hook calling mechanisms for python" optional = false python-versions = ">=3.8" files = [ - {file = "pluggy-1.3.0-py3-none-any.whl", hash = "sha256:d89c696a773f8bd377d18e5ecda92b7a3793cbe66c87060a6fb58c7b6e1061f7"}, - {file = "pluggy-1.3.0.tar.gz", hash = "sha256:cf61ae8f126ac6f7c451172cf30e3e43d3ca77615509771b3a984a0730651e12"}, + {file = "pluggy-1.4.0-py3-none-any.whl", hash = "sha256:7db9f7b503d67d1c5b95f59773ebb58a8c1c288129a88665838012cfb07b8981"}, + {file = "pluggy-1.4.0.tar.gz", hash = "sha256:8c85c2876142a764e5b7548e7d9a0e0ddb46f5185161049a79b7e974454223be"}, ] [package.extras] @@ -441,13 +441,13 @@ jupyter = ["ipywidgets (>=7.5.1,<9)"] [[package]] name = "ruamel-yaml" -version = "0.18.5" +version = "0.18.6" description = "ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order" optional = false python-versions = ">=3.7" files = [ - {file = "ruamel.yaml-0.18.5-py3-none-any.whl", hash = "sha256:a013ac02f99a69cdd6277d9664689eb1acba07069f912823177c5eced21a6ada"}, - {file = "ruamel.yaml-0.18.5.tar.gz", hash = "sha256:61917e3a35a569c1133a8f772e1226961bf5a1198bea7e23f06a0841dea1ab0e"}, + {file = "ruamel.yaml-0.18.6-py3-none-any.whl", hash = "sha256:57b53ba33def16c4f3d807c0ccbc00f8a6081827e81ba2491691b76882d0c636"}, + {file = "ruamel.yaml-0.18.6.tar.gz", hash = "sha256:8b27e6a217e786c6fbe5634d8f3f11bc63e0f80f6a5890f28863d9c45aac311b"}, ] [package.dependencies] @@ -540,17 +540,18 @@ files = [ [[package]] name = "urllib3" -version = "2.1.0" +version = "2.2.0" description = "HTTP library with thread-safe connection pooling, file post, and more." optional = false python-versions = ">=3.8" files = [ - {file = "urllib3-2.1.0-py3-none-any.whl", hash = "sha256:55901e917a5896a349ff771be919f8bd99aff50b79fe58fec595eb37bbc56bb3"}, - {file = "urllib3-2.1.0.tar.gz", hash = "sha256:df7aa8afb0148fa78488e7899b2c59b5f4ffcfa82e6c54ccb9dd37c1d7b52d54"}, + {file = "urllib3-2.2.0-py3-none-any.whl", hash = "sha256:ce3711610ddce217e6d113a2732fafad960a03fd0318c91faa79481e35c11224"}, + {file = "urllib3-2.2.0.tar.gz", hash = "sha256:051d961ad0c62a94e50ecf1af379c3aba230c66c710493493560c0c223c49f20"}, ] [package.extras] brotli = ["brotli (>=1.0.9)", "brotlicffi (>=0.8.0)"] +h2 = ["h2 (>=4,<5)"] socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"] zstd = ["zstandard (>=0.18.0)"]