コード例 #1
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     $this->setName('home:retweets')->setDescription('Lists latest retweets for this user.')->setHelp('The <info>home:retweets</info> command will list the retweets for this user.');
     // Load parameters
     parent::setup();
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     $this->setName('home:timeline')->setDescription('Lists latest tweets from your followers.')->setHelp('The <info>home:timeline</info> command will list the latest tweets from the people you follow.');
     // Load parameters
     parent::setup();
 }
コード例 #3
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     $this->setName('home:tweet')->setDescription('Post a new tweet.')->addArgument('tweet', InputArgument::REQUIRED, 'The tweet to post.')->setHelp('The <info>home:tweet</info> command will post a new tweet.');
     // Load parameters
     parent::setup();
 }
コード例 #4
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     $this->setName('user:timeline')->addArgument('username', InputArgument::OPTIONAL, 'The ID of the user for whom to return results for. Defaults value is the logged in user.')->setDescription('Lists latest tweets from a user. Defaults to you.')->setHelp('The <info>user:timeline</info> takes an optional argument for a username. Defaults to you.');
     // Load parameters
     parent::setup();
 }
コード例 #5
0
 /**
  * {@inheritdoc}
  */
 protected function configure()
 {
     $this->setName('user:show')->addArgument('username', InputArgument::REQUIRED, 'The ID of the user for whom to return results for.')->setDescription('Lists info for a user.')->setHelp('The <info>user:show</info> takes an required argument for a username.');
     // Load parameters
     parent::setup();
 }