nmap-installed

Example:

# Install the package that contains the 'nmap' executable.
- nmap-installed

Description

Install the 'nmap network scanning utility.

Variables

Name Type Default Description

pkg_mgr

string auto

the package manager to use

Examples

Example 1

Install the package that contains the 'nmap' executable.

Code
- nmap-installed
Description

This uses the default system manager to install the package.

Code

doc:
  short_help: Install the sshpass package.
  help: |
    Install the '[nmap](https://nmap.org) network scanning utility.

  furter_reading:
    nmap homepage: https://nmap.org
  examples:
  - title: Install the package that contains the 'nmap' executable.
    desc: |
      This uses the default system manager to install the package.
args:
  pkg_mgr:
    doc:
      short_help: the package manager to use
    type: string
    default: auto
    required: false
    cli:
      metavar: PKG-MGR

meta:
  is_interface: true
  tags:
  - nmap
  - install
  - pkg

frecklets:

- packages-installed:
    packages:
    - name: nmap
      pkg_mgr: '{{:: pkg_mgr ::}}'
frecklecute nmap-installed --help

Usage: frecklecute nmap-installed [OPTIONS]

  Install the '[nmap](https://nmap.org) network scanning utility.

Options:
  --pkg-mgr PKG-MGR  the package manager to use
  --help             Show this message and exit.
# -*- coding: utf-8 -*-


#
# module path: pycklets.nmap_installed.NmapInstalled
#


from dataclasses import dataclass
from pyckles import AutoPycklet
from typing import *    # noqa

@dataclass
class NmapInstalled(AutoPycklet):
    """Install the '[nmap](https://nmap.org) network scanning utility.

       Args:
         pkg_mgr: the package manager to use

    """

    FRECKLET_ID = "nmap-installed"

    pkg_mgr: str = None


    def __post_init__(self):
        super(NmapInstalled, self).__init__(var_names=["pkg_mgr"])


frecklet_class = NmapInstalled
# -*- coding: utf-8 -*-


#
# module path: pycklets.nmap_installed.NmapInstalled
#


from pyckles import AutoPycklet

class NmapInstalled(AutoPycklet):
    """Install the '[nmap](https://nmap.org) network scanning utility.

       Args:
         pkg_mgr: the package manager to use

    """

    FRECKLET_ID = "nmap-installed"

    def __init__(self, pkg_mgr="auto"):

        super(NmapInstalled, self).__init__(var_names=["pkg_mgr"])
        self._pkg_mgr = pkg_mgr

    @property
    def pkg_mgr(self):
        return self._pkg_mgr

    @pkg_mgr.setter
    def pkg_mgr(self, pkg_mgr):
        self._pkg_mgr = pkg_mgr



frecklet_class = NmapInstalled