Top Level Namespace

Defined in:

Constant Summary

CACHEDIR = File.join(get_home_directory, ".sword", "cache")
HOSTS = {"github.com" => "github", "gitlab.com" => "gitlab", "codeberg.org" => "codeberg"}
PKGFILE = "shard.yml"

Method Summary

Method Detail

def add_dependency(url : String, version : String | Nil = nil) #

[View source]
def add_target_to_shard(target_name : String, source_file : String) #

[View source]
def build_project(args : Array(String) = [] of String) #

[View source]
def build_project_release #

[View source]
def build_project_static #

[View source]
def clean_cache #

[View source]
def compile_single(source_file : String) #

[View source]
def fetch_codeberg_info(repo : String, name : String) #

[View source]
def fetch_github_info(repo : String, name : String) #

[View source]
def fetch_gitlab_info(repo : String, name : String) #

[View source]
def fetch_shard_info(url : String) #

[View source]
def get_home_directory #

[View source]
def git_url_to_dependency(url : String) : NamedTuple(name: String, repo: String, provider: String) #

[View source]
def init_project(name : String) #

[View source]
def load_shard_yml : Hash(YAML::Any, YAML::Any) #

[View source]
def print_error(message) #

[View source]
def print_info(message) #

[View source]
def print_success(message) #

[View source]
def print_title(title) #

[View source]
def print_warning(message) #

[View source]
def prune : Bool #

[View source]
def read_shard_yml : Array(String) #

[View source]
def remove_dependency(url : String) #

[View source]
def search_packages(query : String) #

[View source]
def shards_available? #

[View source]
def show_about #

[View source]
def show_dependency_tree #

[View source]
def show_help #

[View source]
def show_version #

[View source]
def update_and_prune #

[View source]
def write_shard_yml(lines : Array(String)) #

[View source]