forked from extern/nushell
Option to replace command same name (#374)
* option to replace command same name * moved order of custom value declarations * arranged dataframe folders and objects * sort help commands by name * added dtypes function for debugging * corrected name for dataframe commands * command names using function
This commit is contained in:
@ -17,6 +17,13 @@ pub fn create_default_context() -> EngineState {
|
||||
};
|
||||
}
|
||||
|
||||
// If there are commands that have the same name as default declarations,
|
||||
// they have to be registered before the main declarations. This helps to make
|
||||
// them only accessible if the correct input value category is used with the
|
||||
// declaration
|
||||
#[cfg(feature = "dataframe")]
|
||||
bind_command!(DataTypes, DescribeDF, OpenDataFrame, ToDataFrame);
|
||||
|
||||
// TODO: sort default context items categorically
|
||||
bind_command!(
|
||||
Alias,
|
||||
@ -148,9 +155,6 @@ pub fn create_default_context() -> EngineState {
|
||||
#[cfg(feature = "plugin")]
|
||||
bind_command!(Register);
|
||||
|
||||
#[cfg(feature = "dataframe")]
|
||||
bind_command!(OpenDataFrame, ToDataFrame);
|
||||
|
||||
// This is a WIP proof of concept
|
||||
// bind_command!(ListGitBranches, Git, GitCheckout, Source);
|
||||
|
||||
|
Reference in New Issue
Block a user