def _setup_shell_locals()

in hpcpack-autoscaler/src/cyclecloud-hpcpack/cli.py [0:0]


    def _setup_shell_locals(self, config: Dict) -> Dict:
        """
        Provides read only interactive shell. type hpcpackhelp()
        in the shell for more information
        """
        ctx = DefaultContextHandler("[interactive-readonly]")

        def hpcpackhelp() -> None:
            print("config               - dict representing autoscale configuration.")
            print("cli                  - object representing the CLI commands")
            print(
                "node_mgr             - ScaleLib NodeManager - interacts with CycleCloud for all node related"
                + "                    activities - creation, deletion, limits, buckets etc."
            )
            print("hpcpackhelp            - This help function")

        shell_locals = {
            "config": config,
            "cli": self,
            "ctx": ctx,
            "node_mgr": new_node_manager(config),
            "hpcpackhelp": hpcpackhelp,
        }

        return shell_locals