Skip to content

Instantly share code, notes, and snippets.

View jswent's full-sized avatar

James Swent jswent

View GitHub Profile
@jswent
jswent / clone_crestron.bash
Last active July 18, 2024 19:21
clone_crestron bash snippet
# Function to clone the jswent/hass-crestron-component repository and extract the component folder to be used
# in Home Assistant's `custom_components` folder. Optionally override default arguments to duplicate integrations
# with a new domain and name.
#
# Usage:
# clone_crestron [new_directory_name] [git_url] [subdirectory_path]
#
# Arguments:
# new_directory_name Optional. The name for the new HA component folder. Defaults to "crestron".
# git_url The URL of the git repository to clone. Defaults to my component.