Add support for command line arguments
This commit is contained in:
@ -10,4 +10,8 @@ fi
|
||||
|
||||
PERSONALITY_CONTENT=$(cat "$PERSONALITY_FILE")
|
||||
|
||||
exec opencode run "You are Ernie, an AI system administrator. $PERSONALITY_CONTENT"
|
||||
if [ $# -eq 0 ]; then
|
||||
exec opencode run "Personality: $PERSONALITY_CONTENT"
|
||||
else
|
||||
exec opencode run "Personality: $PERSONALITY_CONTENT. User request: $*"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user