๐Ÿ“ฆโž”๐Ÿฆ‹ Store and retrieve files on the Atmosphere
35
fork

Configure Feed

Select the types of activity you want to include in your feed.

build: rename `release` to `build`

Ducky fc804157 2f5e71eb

+17 -17
+9 -9
src/commands/release.sh src/commands/build.sh
··· 1 1 #!/usr/bin/env bash 2 2 # atfile-devel=ignore-build 3 3 4 - function atfile.release() { 4 + function atfile.build() { 5 5 # shellcheck disable=SC2154 6 6 [[ $_os != "linux" ]] && atfile.die "Only available on Linux (GNU)\nโ†ณ Detected OS: $_os" 7 7 8 - function atfile.release.get_devel_value() { 8 + function atfile.build.get_devel_value() { 9 9 local file="$1" 10 10 local value="$2" 11 11 local found_line ··· 22 22 fi 23 23 } 24 24 25 - function atfile.release.replace_template_var() { 25 + function atfile.build.replace_template_var() { 26 26 string="$1" 27 27 key="$2" 28 28 value="$3" ··· 73 73 for s in "${ATFILE_DEVEL_INCLUDES[@]}" 74 74 do 75 75 if [[ -f "$s" ]]; then 76 - if [[ $(atfile.release.get_devel_value "$s" "ignore-build" == 1 ) ]]; then 76 + if [[ $(atfile.build.get_devel_value "$s" "ignore-build" == 1 ) ]]; then 77 77 echo "โ†ณ Ignoring: $s" 78 78 else 79 79 echo "โ†ณ Compiling: $s" ··· 101 101 if [[ $include_line == 1 ]]; then 102 102 if [[ $line == *"{:"* && $line == *":}"* ]]; then 103 103 # NOTE: Not using atfile.util.get_envvar() here, as confusion can arise from config file 104 - line="$(atfile.release.replace_template_var "$line" "meta_author" "$ATFILE_FORCE_META_AUTHOR")" 105 - line="$(atfile.release.replace_template_var "$line" "meta_did" "$ATFILE_FORCE_META_DID")" 106 - line="$(atfile.release.replace_template_var "$line" "meta_repo" "$ATFILE_FORCE_META_REPO")" 107 - line="$(atfile.release.replace_template_var "$line" "meta_year" "$ATFILE_FORCE_META_YEAR")" 108 - line="$(atfile.release.replace_template_var "$line" "version" "$ATFILE_FORCE_VERSION")" 104 + line="$(atfile.build.replace_template_var "$line" "meta_author" "$ATFILE_FORCE_META_AUTHOR")" 105 + line="$(atfile.build.replace_template_var "$line" "meta_did" "$ATFILE_FORCE_META_DID")" 106 + line="$(atfile.build.replace_template_var "$line" "meta_repo" "$ATFILE_FORCE_META_REPO")" 107 + line="$(atfile.build.replace_template_var "$line" "meta_year" "$ATFILE_FORCE_META_YEAR")" 108 + line="$(atfile.build.replace_template_var "$line" "version" "$ATFILE_FORCE_VERSION")" 109 109 fi 110 110 111 111 echo "$line" >> "$dist_path"
+1 -1
src/entry.sh
··· 291 291 previous_command="$_command" 292 292 293 293 case "$_command" in 294 + "release") _command="build" ;; 294 295 "open"|"print"|"c") _command="cat" ;; 295 296 "rm") _command="delete" ;; 296 297 "download"|"f"|"d") _command="fetch" ;; ··· 299 300 "--help"|"-h") _command="help" ;; 300 301 "get"|"i") _command="info" ;; 301 302 "ls") _command="list" ;; 302 - "build") _command="release" ;; 303 303 "did") _command="resolve" ;; 304 304 "sb") _command="something-broke" ;; 305 305 "js") _command="stream" ;;
+7 -7
src/shared/invoke.sh
··· 28 28 atfile.bsky_profile "${args[0]}" 29 29 fi 30 30 ;; 31 + "build") 32 + if [[ $ATFILE_DEVEL == 1 ]]; then 33 + atfile.build 34 + else 35 + atfile.die.unknown_command "$command" 36 + fi 37 + ;; 31 38 "cat") 32 39 [[ -z "${args[0]}" ]] && atfile.die "<key> not set" 33 40 if [[ -n "${args[1]}" ]]; then ··· 129 136 "rm"|"delete"|"d") atfile.record "delete" "${args[1]}" ;; 130 137 *) atfile.die.unknown_command "$(echo "$command ${args[0]}" | xargs)" ;; 131 138 esac 132 - ;; 133 - "release") 134 - if [[ $ATFILE_DEVEL == 1 ]]; then 135 - atfile.release 136 - else 137 - atfile.die.unknown_command "$command" 138 - fi 139 139 ;; 140 140 "resolve") 141 141 atfile.resolve "${args[0]}"