osx-command-line-tools-installed

Example:

# Install OS X command-line tools.
- osx-command-line-tools-installed

Description

Install the Mac OS X command-line tools (without Xcode).

The Command Line Tool package gives Mac terminal users many commonly used tools, utilities, and compilers, including make, GCC, clang, perl, svn, git, size, strip, strings, libtool, cpp, what, and many other useful commands that are usually found in default linux installations.

Variables

Name Type Default Description

force

boolean False

Force the install, even if the tools are already present.

Examples

Example 1

Install OS X command-line tools.

Code
- osx-command-line-tools-installed

Example 2

Install OS X command-line tools, force re-install even if already present.

Code
- osx-command-line-tools-installed:
    force: true

Code

doc:
  short_help: Install Mac OS X command-line tools.
  help: |
    Install the Mac OS X command-line tools (without Xcode).

    The Command Line Tool package gives Mac terminal users many commonly used tools, utilities, and compilers, including
    make, GCC, clang, perl, svn, git, size, strip, strings, libtool, cpp, what, and many other useful commands that are
    usually found in default linux installations.
  examples:
  - title: Install OS X command-line tools.
  - title: Install OS X command-line tools, force re-install even if already present.
    vars:
      force: true

args:
  force:
    type: boolean
    doc:
      short_help: Force the install, even if the tools are already present.
      msg: installing Mac OS X command-line tools
    required: false
    default: false
    cli:
      is_flag: true

meta:
  status:
    supported:
    - darwin
  tags:
  - darwin
  - mac-os-x
  - command-line-tools
  - install

frecklets:

- frecklet:
    name: elliotweiser.osx-command-line-tools
    type: ansible-role
    resources:
      ansible-role:
      - elliotweiser.osx-command-line-tools
    properties:
      idempotent: true
      internet: true
      elevated: true
    desc:
      short: install Mac OS X commandline-tools
      references:
        "'elliotweiser.osx-comamnd-line-tools": https://github.com/elliotweiser/ansible-osx-command-line-tools
      long: |
        Install the Mac OS X command-line tools (without Xcode).
  vars:
    force_install: '{{:: force ::}}'
frecklecute osx-command-line-tools-installed --help

Usage: frecklecute osx-command-line-tools-installed [OPTIONS]

  Install the Mac OS X command-line tools (without Xcode).

  The Command Line Tool package gives Mac terminal users many commonly used
  tools, utilities, and compilers, including make, GCC, clang, perl, svn,
  git, size, strip, strings, libtool, cpp, what, and many other useful
  commands that are usually found in default linux installations.

Options:
  --force / --no-force  Force the install, even if the tools are already
                        present.
  --help                Show this message and exit.
# -*- coding: utf-8 -*-


#
# module path: pycklets.osx_command_line_tools_installed.OsxCommandLineToolsInstalled
#


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

@dataclass
class OsxCommandLineToolsInstalled(AutoPycklet):
    """Install the Mac OS X command-line tools (without Xcode).

     The Command Line Tool package gives Mac terminal users many commonly used tools, utilities, and compilers, including
     make, GCC, clang, perl, svn, git, size, strip, strings, libtool, cpp, what, and many other useful commands that are
     usually found in default linux installations.

       Args:
         force: Force the install, even if the tools are already present.

    """

    FRECKLET_ID = "osx-command-line-tools-installed"

    force: bool = None


    def __post_init__(self):
        super(OsxCommandLineToolsInstalled, self).__init__(var_names=["force"])


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


#
# module path: pycklets.osx_command_line_tools_installed.OsxCommandLineToolsInstalled
#


from pyckles import AutoPycklet

class OsxCommandLineToolsInstalled(AutoPycklet):
    """Install the Mac OS X command-line tools (without Xcode).

     The Command Line Tool package gives Mac terminal users many commonly used tools, utilities, and compilers, including
     make, GCC, clang, perl, svn, git, size, strip, strings, libtool, cpp, what, and many other useful commands that are
     usually found in default linux installations.

       Args:
         force: Force the install, even if the tools are already present.

    """

    FRECKLET_ID = "osx-command-line-tools-installed"

    def __init__(self, force=None):

        super(OsxCommandLineToolsInstalled, self).__init__(var_names=["force"])
        self._force = force

    @property
    def force(self):
        return self._force

    @force.setter
    def force(self, force):
        self._force = force



frecklet_class = OsxCommandLineToolsInstalled