Skip to content

Conversation

@shiron-dev
Copy link
Owner

…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.

…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'}" # 末尾の改行コードを削除
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[shfmt] reported by reviewdog 🐶

Suggested change
path="${path%$'\r'}" # 末尾の改行コードを削除
path="${path%$'\r'}" # 末尾の改行コードを削除

path="" # 次のアイテムのためにリセット
fi
fi
done < "$yaml_file"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[shfmt] reported by reviewdog 🐶

Suggested change
done < "$yaml_file"
done <"$yaml_file"

@github-actions
Copy link
Contributor

github-actions bot commented Jul 9, 2025

PRのスコープが正しくありません。
現在のスコープ: login_manager
検知したスコープ: dotfiles

Comment on lines +21 to 25
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"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[shfmt] reported by reviewdog 🐶

Suggested change
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"

@github-actions
Copy link
Contributor

github-actions bot commented Jul 9, 2025

PRのスコープが正しくありません。
現在のスコープ: login_manager
検知したスコープ: dotfiles

@shiron-dev shiron-dev changed the title feat(login_manager): add open command to launch applications from YAM… feat(dotfiles): add open command to launch applications from YAM… Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants