Skip to content

v2.1.0 - Command-Line Arguments

Choose a tag to compare

@lancedesk lancedesk released this 04 Feb 09:39
· 9 commits to main since this release

Command-Line Arguments Support

What's New

  • Direct Command Execution: Run specific options without interactive menu
  • Auto-Confirm Flag (-y): Skip token confirmation for automation
  • Help Flag (-h): Quick reference for all available commands
  • Flexible Argument Order: Mix flags and commands however you prefer

New Command Syntax

# Direct option execution
followers 9              # Run auto-sync (will ask about token)
followers 9 -y           # Run auto-sync, auto-confirm token

# Show information
followers 1              # Show non-followers
followers 6              # Check rate limit status

# Arguments work in any order
followers -y 3           # Same as: followers 3 -y
followers --help         # Show usage guide

Use Cases

Automation & Scripting:

# Cron job for daily auto-sync
0 2 * * * followers 9 -y

# Quick status check
followers 6 -y

Quick Operations:

# Check who doesn't follow back
followers 1

# Bulk unfollow non-followers
followers 3 -y

CI/CD Integration:

# No interactive prompts
followers 9 -y

Available Commands

Command Description
1 Show who you follow but they don't follow back
2 Show your followers you don't follow back
3 Unfollow users who don't follow you back (bulk)
4 Unfollow users (selective - choose each)
5 Follow back your followers (bulk)
6 Show rate limit status
7 Change GitHub token
8 Debug: Show counts
9 Auto-sync: Unfollow non-followers + Follow back
0 Exit

Command-Line Flags

Flag Description
-y, --yes Auto-accept existing token (no prompt)
-h, --help Show help message with examples

Backward Compatibility

  • No arguments: Interactive mode (same as v2.0.0 and v1.0.0)
  • All existing functionality preserved
  • Zero breaking changes

Installation

git clone https://github.com/lancedesk/github-unfollower.git
cd github-unfollower
chmod +x gh-followers.sh install.sh
./install.sh  # Optional global installation

Upgrading from v2.0.0 or v1.0.0

cd github-unfollower
git pull
# Your token and settings are preserved
# New command-line features available immediately

See README.md for full documentation.