Code Monkey home page Code Monkey logo

Comments (7)

LeonidVas avatar LeonidVas commented on July 25, 2024

I think that tt should get information about the location of external modules through the config, which by default it searches in the same directory (or the location of the config can be passed through an argument / environment variable). The config should describe the name of the module and its parameters. For example:

{
	name_of_module: {
		path: path/to/module,
		type: type_of_the_module
	},
	name_of_module_2: {
		path: path/to/module_2,
		type: type_of_the_module
	}
}

But it may be easier and user friendly to specify in the config only the path to the directory with the modules, and take the module name from the file names or "ask" the module.

from tt.

LeonidVas avatar LeonidVas commented on July 25, 2024

For mercurial, the full path to the extension is specified if it is not located in the "standard" path. (https://www.mercurial-scm.org/wiki/UsingExtensions)

from tt.

LeonidVas avatar LeonidVas commented on July 25, 2024

image

from tt.

unera avatar unera commented on July 25, 2024

I think that tt should get information about the location of external modules through the config, which by default it searches in the same directory (or the location of the config can be passed through an argument / environment variable). The config should describe the name of the module and its parameters. For example:

{
	name_of_module: {
		path: path/to/module,
		type: type_of_the_module
	},
	name_of_module_2: {
		path: path/to/module_2,
		type: type_of_the_module
	}
}

But it may be easier and user friendly to specify in the config only the path to the directory with the modules, and take the module name from the file names or "ask" the module.

I think it would be nice

  1. To get plugins dir list from .tt.conf (default value: /usr/lib/tt/plugins for the system and ./tt/plugins for local)
  2. To separate module types by thier file types, for example: file.plugin - is a plugin, the other - is the other
  3. If a module is represented twice, type plugin has the lowest priority.

from tt.

unera avatar unera commented on July 25, 2024

Tarantool ticket tarantool/tarantool#6211 to provide local start

from tt.

unera avatar unera commented on July 25, 2024

rename .tt.conf to tarantool.yaml

from tt.

unera avatar unera commented on July 25, 2024
  • find tarantool.yaml - a bundle cofig (from $CURDIR upto /). If the config doesn't exists let's think that $CURDIR is a base bundle path)

Why do we want to use this kind of search logic? I understand if we search a config in the current directory, home, /etc/tt, but why we want to search a config in/?

from tt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.