Module: D2
- Extended by:
- CLI::Kit::Autocall
- Defined in:
- lib/d2/helpers/fzy.rb,
lib/d2.rb,
lib/d2/commands.rb,
lib/d2/commands/cd.rb,
lib/d2/entry_point.rb,
lib/d2/helpers/git.rb,
lib/d2/commands/help.rb,
lib/d2/commands/clone.rb,
lib/d2/commands/config.rb,
lib/d2/utils/first_run.rb,
lib/d2/utils/formatter.rb,
lib/d2/helpers/git/local_repo.rb
Overview
TODO: Test
Defined Under Namespace
Modules: Commands, Helpers, Utils Classes: Command, FileDescriptor
Constant Summary collapse
- TOOL_NAME =
The name of the tool
'd2'
- ROOT =
The root directory of the tool
File.('../..', __FILE__)
- LOG_FILE =
The file path where the log exists
'/tmp/d2.log'
- FILE_DESCRIPTOR =
The file descriptor object used to interact with the OS file descriptor 9 This is used by the Ruby process (child) to communicate with the parent process (shell). On finalization of the shell function, the file descriptor is used to manipulate the parent environment. Use D2::FILE_DESCRIPTOR.write(“cd blah”) to add to the file descriptor for evaluation in the parent.
FileDescriptor.new