Skip to content
Aleh Kashnikau edited this page Sep 2, 2015 · 4 revisions

Padawan.php package provides 2 command line bins:

  • padawan - cli for padawan.php
  • padawan-server - script for starting padawan.php http server

#padawan-server

There are 4 urls:

  • /complete
  • /save
  • /kill
  • /load

You can find all routes here

/complete

        params = {
            'filepath': filepath.replace(curPath, ""),
            'line': request_data['line_num'],
            'column': request_data['column_num'],
            'path': curPath
        }

and file contents in request body.

padawan(CLI)

There are 3 cli commands:

  • generate
  • update
  • plugin

You can find all commands here

plugin

Plugin command accepts 2 arguments: action( add or remove ) and plugin name( e.g. mkusher/padawan-symfony ).

generate

Generate command doesn't have arguments, it will generate index for a project of the current working directory.

Clone this wiki locally