Skip to main content

Run command in the context same as application

Project description

Run your commands in your application context. Let’s eliminate cd and source in your crontab!

Requirements

  • Supports Python 2.7 only

We’ll be supporting 3.5 soon.

Setup

$ pip install --user appdo
or
(venv)$ pip install appdo

Usage

First, write your config file ~/.appdo.conf in TOML.

[default]
cd = "~/work/myapp"
source = ["/etc/profile", "~/.bash_profile"]
prefix = "bundle exec"

[default.env]
PAGER    = "cat"
RACK_ENV = "staging"

Then run appdo command. The commands will be executed in the config manner.

$ appdo rake -vT

Which is equivalent to:

$ cd ~/work/myapp
$ source /etc/profile
$ source ~/.bash_profile
$ PAGER=cat RACK_ENV=staging bundle exec rake -vT

ChangeLog

0.2.0 (2016-04-24)

  • Publicly released.

  • License changed into Apache License

  • cd option added to config file

  • returns error when no command specified.

  • –listapp command line option added to see what app you’ve set

0.1.2 (2016-04-22)

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

appdo-0.2.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

appdo-0.2.0-py2.7.egg (7.3 kB view details)

Uploaded Source

File details

Details for the file appdo-0.2.0.tar.gz.

File metadata

  • Download URL: appdo-0.2.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for appdo-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a4f1b23ffc5c377fc38a0e606ece094d3b195ebccd7651c784f16f77143a6362
MD5 8a82b5570816b2d0ab4f9bcc107bf96c
BLAKE2b-256 5817bda39edad4918d7639a5352541a6de618af0da0a52905a6157dd25b804be

See more details on using hashes here.

File details

Details for the file appdo-0.2.0-py2.7.egg.

File metadata

  • Download URL: appdo-0.2.0-py2.7.egg
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for appdo-0.2.0-py2.7.egg
Algorithm Hash digest
SHA256 419377b8dbbc9ab0b96359265bde54bc3220299082e1e2acf51af3d6cabf8623
MD5 3f330ec4f4a3319b4b7adc532468ad0e
BLAKE2b-256 982eea84d0152b5f9046b51c2d767b1af1cb2647afb78adffb736fe835839db6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page