```coffeescript
fs = require 'fs'
child_process = require 'child_process'

module.exports = Indexer =

	getCondaPackages: () ->
		output = child_process.execSync ' conda search ".*" --names-only '
		names = output.toString().split('\n').slice(1)
		names.map (name) ->
			{name: name, description: null}

	getPipPackages: () ->
		output = child_process.execSync ' pip search ".*" '
		lines = output.toString().split('\n')
		lines.map (line) ->
			words = line.split /\s+-/
			{name: words[0], description: words[1]}

	build: () ->
		index =
			indexBuiltAt: new Date().toISOString()
			packages:
				python: {}
				r: {}

		return index


args = process.argv.slice(2)
result = Indexer.build()
if '--save' in args
	result_json = JSON.stringify(result, null, 2)
	fs.writeFileSync(__dirname + '/data/packageIndex.json', result_json)
console.log result
```

Add command to each item.
user
```coffeescript
fs = require 'fs'
child_process = require 'child_process'

module.exports = Indexer =

	getCondaPackages: () ->
		output = child_process.execSync ' conda search ".*" --names-only '
		names = output.toString().split('\n').slice(1)
		names.map (name) ->
			{name: name, description: null, command: "conda install #{name}"}

	getPipPackages: () ->
		output = child_process.execSync ' pip search ".*" '
		lines = output.toString().split('\n')
		lines.map (line) ->
			words = line.split /\s+-/
			{name: words[0], description: words[1], command: "pip install #{words[0]}"}

	build: () ->
		index =
			indexBuiltAt: new Date().toISOString()
			packages:
				python: {}
				r: {}

		return index


args = process.argv.slice(2)
result = Indexer.build()
if '--save' in args
	result_json = JSON.stringify(result, null, 2)
	fs.writeFileSync(__dirname + '/data/packageIndex.json', result_json)
console.log result
```
assistant