-
Notifications
You must be signed in to change notification settings - Fork 0
feat(dotfiles): add open command to launch applications from YAM… #159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…L file - Introduced a new command 'open' to the login_manager script that allows users to open all applications defined in the YAML file. - Added user confirmation before opening applications. - Enhanced path handling to remove trailing whitespace and carriage return characters.
| if [[ "$line" == "- path: "* ]]; then | ||
| path="${line#*- path: }" | ||
| path="${path%"${path##*[![:space:]]}"}" # 末尾の空白を削除 | ||
| path="${path%$'\r'}" # 末尾の改行コードを削除 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[shfmt] reported by reviewdog 🐶
| path="${path%$'\r'}" # 末尾の改行コードを削除 | |
| path="${path%$'\r'}" # 末尾の改行コードを削除 |
| path="" # 次のアイテムのためにリセット | ||
| fi | ||
| fi | ||
| done < "$yaml_file" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[shfmt] reported by reviewdog 🐶
| done < "$yaml_file" | |
| done <"$yaml_file" |
|
PRのスコープが正しくありません。 |
| if ! osascript -e "$osascript_cmd" 2> /dev/null | while IFS=$'\t' read -r path_val hidden_val; do | ||
| if [[ -n "$path_val" ]]; then | ||
| path_val="${path_val%$'\r'}" | ||
| hidden_val="${hidden_val%$'\r'}" | ||
| printf -- "- path: %s\n hidden: %s\n" "$path_val" "$hidden_val" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[shfmt] reported by reviewdog 🐶
| if ! osascript -e "$osascript_cmd" 2> /dev/null | while IFS=$'\t' read -r path_val hidden_val; do | |
| if [[ -n "$path_val" ]]; then | |
| path_val="${path_val%$'\r'}" | |
| hidden_val="${hidden_val%$'\r'}" | |
| printf -- "- path: %s\n hidden: %s\n" "$path_val" "$hidden_val" | |
| if ! osascript -e "$osascript_cmd" 2>/dev/null | while IFS=$'\t' read -r path_val hidden_val; do | |
| if [[ -n "$path_val" ]]; then | |
| path_val="${path_val%$'\r'}" | |
| hidden_val="${hidden_val%$'\r'}" | |
| printf -- "- path: %s\n hidden: %s\n" "$path_val" "$hidden_val" |
|
PRのスコープが正しくありません。 |
…L file