Skip to content

Application Development


This is a development tool and tracks the state of the "current" project you are working on.

The concept of the Application Home is the current project you are working on in your system. The value is stored in a cache file and can be updated using applicationHome or the (default) aliases g and G.

A pattern used can be per-project:

alias gFluxCapacitor='cd $HOME/projects/flux'
alias GFluxCapacitor='gFluxCapacitor; G'

Which allows you to navigate between projects and change your current context.

applicationHome

Set, or cd to current application home directory.

Usage

applicationHome [ --help ] [ directory ] [ --go ]

Set, or cd to current application home directory.

Location: bin/build/tools/application.sh

Arguments

  • --help - Flag. Optional. Display this help.
  • directory - Directory. Optional. Set the application home to this directory.
  • --go - Flag. Optional. Change to the current saved application home directory.

Return codes

  • 0 - Success
  • 1 - Environment error
  • 2 - Argument error

applicationHomeAliases

applicationHome bash aliases setup

Usage

applicationHomeAliases [ goAlias ] [ setAlias ]

Set aliases G and g (defaults) to aliases of applicationHome Localize as you wish for your own shell

Location: bin/build/tools/application.sh

Arguments

  • goAlias - String. Alias for applicationHome --go. Default is g.
  • setAlias - String. Alias for applicationHome. Default is G.

Return codes

  • 0 - Success
  • 1 - Environment error
  • 2 - Argument error

bashApplicationAlias

Create alias for project

Usage

bashApplicationAlias [ --help ] alias path [ name ]

This creates an alias for a project: - g-alias - Change directory to this project (temporary) - G-alias - Change directory and set application home to this project (survives logout)

Location: bin/build/tools/bash.sh

Arguments

  • --help - Flag. Optional. Display this help.
  • alias - String. Required. Alias to generate.
  • path - UserDirectory. Required. Project path relative to user home (or absolute)
  • name - String. Optional. Project name to use

Writes to standard output

ConsoleText

Return codes

  • 0 - Success
  • 1 - Environment error
  • 2 - Argument error

bashApplicationAliases

Create aliases for projects

Usage

bashApplicationAliases [ --help ]

Reads from stdin lines which is broken into three tokens by spaces: alias pathName projectName The directories which exist at $HOME/$pathName will have aliases created for the project in Bash: - g-alias - Change directory to this project (temporary) - G-alias - Change directory and set application home to this project (survives logout) The projectName is optional as it is extracted from the target project using the APPLICATION_NAME.

Location: bin/build/tools/bash.sh

Arguments

  • --help - Flag. Optional. Display this help.

Reads standard input

String Directory String:line

Return codes

  • 0 - Success
  • 1 - Environment error
  • 2 - Argument error

Environment


🛠️ Tools · ⬅ Top