Skip to content

Commit

Permalink
- Generate with bashly 1.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyBen committed Feb 27, 2024
1 parent 463c493 commit d57c4e1
Show file tree
Hide file tree
Showing 25 changed files with 81 additions and 311 deletions.
3 changes: 3 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[codespell]
skip = sublime*
ignore-words-list = bu
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ v0.4.12 - 2022-05-23
- Fix completions error with configs that do not have subcommands


<!-- break v0.4.11 -->
v0.4.11 - 2022-05-12
----------------------------------------

- Genearte with bashly 0.8.0
- Generate with bashly 0.8.0


v0.4.10 - 2022-03-28
Expand Down
30 changes: 24 additions & 6 deletions alf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# This script was generated by bashly 1.1.0 (https://bashly.dannyb.co)
# This script was generated by bashly 1.1.7 (https://bashly.dannyb.co)
# Modifying it manually is not recommended

# :wrapper.bash3_bouncer
Expand Down Expand Up @@ -431,7 +431,9 @@ inspect_args() {
if ((${#args[@]})); then
readarray -t sorted_keys < <(printf '%s\n' "${!args[@]}" | sort)
echo args:
for k in "${sorted_keys[@]}"; do echo "- \${args[$k]} = ${args[$k]}"; done
for k in "${sorted_keys[@]}"; do
echo "- \${args[$k]} = ${args[$k]}"
done
else
echo args: none
fi
Expand All @@ -449,9 +451,19 @@ inspect_args() {
readarray -t sorted_keys < <(printf '%s\n' "${!deps[@]}" | sort)
echo
echo deps:
for k in "${sorted_keys[@]}"; do echo "- \${deps[$k]} = ${deps[$k]}"; done
for k in "${sorted_keys[@]}"; do
echo "- \${deps[$k]} = ${deps[$k]}"
done
fi

if ((${#env_var_names[@]})); then
readarray -t sorted_names < <(printf '%s\n' "${env_var_names[@]}" | sort)
echo
echo "environment variables:"
for k in "${sorted_names[@]}"; do
echo "- \$$k = ${!k:-}"
done
fi
}

# :command.user_lib
Expand Down Expand Up @@ -926,6 +938,10 @@ parse_requirements() {
esac
done

# :command.environment_variables_filter

env_var_names+=("ALF_RC_FILE")

# :command.command_filter
action=${1:-}

Expand Down Expand Up @@ -1097,7 +1113,6 @@ alf_connect_parse_requirements() {
# :command.parse_requirements_case
# :command.parse_requirements_case_simple
if [[ -z ${args['repo']+x} ]]; then

args['repo']=$1
shift
else
Expand Down Expand Up @@ -1284,6 +1299,10 @@ alf_save_parse_requirements() {
esac
done

# :command.environment_variables_filter

env_var_names+=("ALF_ALIASES_FILE")

# :command.command_filter
action="save"

Expand Down Expand Up @@ -1389,11 +1408,9 @@ alf_which_parse_requirements() {
# :command.parse_requirements_case
# :command.parse_requirements_case_simple
if [[ -z ${args['code']+x} ]]; then

args['code']=$1
shift
elif [[ -z ${args['subcode']+x} ]]; then

args['subcode']=$1
shift
else
Expand Down Expand Up @@ -1536,6 +1553,7 @@ run() {
declare -A args=()
declare -A deps=()
declare -a other_args=()
declare -a env_var_names=()
declare -a input=()
normalize_input "$@"
parse_requirements "${input[@]}"
Expand Down
33 changes: 4 additions & 29 deletions doc/alf-connect.1
Original file line number Diff line number Diff line change
@@ -1,35 +1,16 @@
.\" Automatically generated by Pandoc 3.1.6
.\" Automatically generated by Pandoc 3.1.9
.\"
.\" Define V font for inline verbatim, using C font in formats
.\" that render this, and otherwise B font.
.ie "\f[CB]x\f[]"x" \{\
. ftr V B
. ftr VI BI
. ftr VB B
. ftr VBI BI
.\}
.el \{\
. ftr V CR
. ftr VI CI
. ftr VB CB
. ftr VBI CBI
.\}
.TH "alf-connect" "1" "September 2023" "" "Connect to a remote git repository."
.hy
.TH "alf-connect" "1" "February 2024" "" "Connect to a remote git repository."
.SH NAME
.PP
\f[B]alf connect\f[R] - Connect to a remote git repository.
.SH SYNOPSIS
.PP
\f[B]alf connect\f[R] REPO OPTIONS
.SH DESCRIPTION
.PP
Connect to a remote git repository.
.IP \[bu] 2
Alias: \f[B]c\f[R]
.SH ARGUMENTS
.SS REPO
.PP
Remote GitHub repository to connect to.
.PP
Can be one of:
Expand All @@ -44,28 +25,22 @@ Any other full URL to a repository.
\f[I]Required\f[R]
.SH OPTIONS
.SS --ssh
.PP
Connect to GitHub non-interactively using SSH (implies \f[B]--yes\f[R]).
.SS --https
.PP
Connect to GitHub non-interactively using HTTPS (implies
\f[B]--yes\f[R]).
.SS --yes, -y
.PP
Connect to any remote repository non-interactively.
.SH DEPENDENCIES
.SS git
.SH EXAMPLES
.IP
.nf
\f[C]
.EX
alf connect you --ssh
alf connect you/alf-config
alf connect https://You\[at]bitbucket.org/YourUser/rush-repo.git --yes
\f[R]
.fi
.EE
.SH SEE ALSO
.PP
\f[B]alf\f[R](1)
2 changes: 1 addition & 1 deletion doc/alf-connect.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% alf-connect(1) | Connect to a remote git repository.
%
% September 2023
% February 2024

NAME
==================================================
Expand Down
23 changes: 2 additions & 21 deletions doc/alf-download.1
Original file line number Diff line number Diff line change
@@ -1,34 +1,15 @@
.\" Automatically generated by Pandoc 3.1.6
.\" Automatically generated by Pandoc 3.1.9
.\"
.\" Define V font for inline verbatim, using C font in formats
.\" that render this, and otherwise B font.
.ie "\f[CB]x\f[]"x" \{\
. ftr V B
. ftr VI BI
. ftr VB B
. ftr VBI BI
.\}
.el \{\
. ftr V CR
. ftr VI CI
. ftr VB CB
. ftr VBI CBI
.\}
.TH "alf-download" "1" "September 2023" "" "Perform git pull on the connected repo."
.hy
.TH "alf-download" "1" "February 2024" "" "Perform git pull on the connected repo."
.SH NAME
.PP
\f[B]alf download\f[R] - Perform git pull on the connected repo.
.SH SYNOPSIS
.PP
\f[B]alf download\f[R]
.SH DESCRIPTION
.PP
Perform git pull on the connected repo.
.IP \[bu] 2
Alias: \f[B]d, pull\f[R]
.SH DEPENDENCIES
.SS git
.SH SEE ALSO
.PP
\f[B]alf\f[R](1)
2 changes: 1 addition & 1 deletion doc/alf-download.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% alf-download(1) | Perform git pull on the connected repo.
%
% September 2023
% February 2024

NAME
==================================================
Expand Down
25 changes: 3 additions & 22 deletions doc/alf-edit.1
Original file line number Diff line number Diff line change
@@ -1,32 +1,13 @@
.\" Automatically generated by Pandoc 3.1.6
.\" Automatically generated by Pandoc 3.1.9
.\"
.\" Define V font for inline verbatim, using C font in formats
.\" that render this, and otherwise B font.
.ie "\f[CB]x\f[]"x" \{\
. ftr V B
. ftr VI BI
. ftr VB B
. ftr VBI BI
.\}
.el \{\
. ftr V CR
. ftr VI CI
. ftr VB CB
. ftr VBI CBI
.\}
.TH "alf-edit" "1" "September 2023" "" "Open your \f[V]alf.conf\f[R] for editing."
.hy
.TH "alf-edit" "1" "February 2024" "" "Open your \f[CR]alf.conf\f[R] for editing."
.SH NAME
.PP
\f[B]alf edit\f[R] - Open your \f[V]alf.conf\f[R] for editing.
\f[B]alf edit\f[R] - Open your \f[CR]alf.conf\f[R] for editing.
.SH SYNOPSIS
.PP
\f[B]alf edit\f[R]
.SH DESCRIPTION
.PP
Open your \f[B]alf.conf\f[R] for editing.
.IP \[bu] 2
Alias: \f[B]e\f[R]
.SH SEE ALSO
.PP
\f[B]alf\f[R](1), \f[B]alf.conf\f[R](5)
2 changes: 1 addition & 1 deletion doc/alf-edit.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% alf-edit(1) | Open your `alf.conf` for editing.
%
% September 2023
% February 2024

NAME
==================================================
Expand Down
23 changes: 2 additions & 21 deletions doc/alf-generate.1
Original file line number Diff line number Diff line change
@@ -1,32 +1,13 @@
.\" Automatically generated by Pandoc 3.1.6
.\" Automatically generated by Pandoc 3.1.9
.\"
.\" Define V font for inline verbatim, using C font in formats
.\" that render this, and otherwise B font.
.ie "\f[CB]x\f[]"x" \{\
. ftr V B
. ftr VI BI
. ftr VB B
. ftr VBI BI
.\}
.el \{\
. ftr V CR
. ftr VI CI
. ftr VB CB
. ftr VBI CBI
.\}
.TH "alf-generate" "1" "September 2023" "" "Generate aliases to stdout."
.hy
.TH "alf-generate" "1" "February 2024" "" "Generate aliases to stdout."
.SH NAME
.PP
\f[B]alf generate\f[R] - Generate aliases to stdout.
.SH SYNOPSIS
.PP
\f[B]alf generate\f[R]
.SH DESCRIPTION
.PP
Generate aliases to stdout.
.IP \[bu] 2
Alias: \f[B]g\f[R]
.SH SEE ALSO
.PP
\f[B]alf\f[R](1)
2 changes: 1 addition & 1 deletion doc/alf-generate.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% alf-generate(1) | Generate aliases to stdout.
%
% September 2023
% February 2024

NAME
==================================================
Expand Down
23 changes: 2 additions & 21 deletions doc/alf-info.1
Original file line number Diff line number Diff line change
@@ -1,32 +1,13 @@
.\" Automatically generated by Pandoc 3.1.6
.\" Automatically generated by Pandoc 3.1.9
.\"
.\" Define V font for inline verbatim, using C font in formats
.\" that render this, and otherwise B font.
.ie "\f[CB]x\f[]"x" \{\
. ftr V B
. ftr VI BI
. ftr VB B
. ftr VBI BI
.\}
.el \{\
. ftr V CR
. ftr VI CI
. ftr VB CB
. ftr VBI CBI
.\}
.TH "alf-info" "1" "September 2023" "" "Show all alf related system facts."
.hy
.TH "alf-info" "1" "February 2024" "" "Show all alf related system facts."
.SH NAME
.PP
\f[B]alf info\f[R] - Show all alf related system facts.
.SH SYNOPSIS
.PP
\f[B]alf info\f[R]
.SH DESCRIPTION
.PP
Show all alf related system facts.
.SH DEPENDENCIES
.SS git
.SH SEE ALSO
.PP
\f[B]alf\f[R](1)
2 changes: 1 addition & 1 deletion doc/alf-info.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% alf-info(1) | Show all alf related system facts.
%
% September 2023
% February 2024

NAME
==================================================
Expand Down
Loading

0 comments on commit d57c4e1

Please sign in to comment.