Code Monkey home page Code Monkey logo

Comments (5)

FlashyReese avatar FlashyReese commented on July 28, 2024

Sorry about the warning in the logs, if you migrate right now you will need to change every one of the aliases again for 1.0.0 because the format has changed. I recommend sticking with the old one for now, if you want to still go ahead and do it. The config/commandaliases folder takes individual aliases only. So for example it would look something like this:

JSON format

config/commandaliases/tonnerre.json

{
  "commandMode": "COMMAND_REDIRECT_NOARG",
  "redirectCommand": {
    "command": "tonnerre",
    "redirectTo": "weather thunder"
  }
}

TOML format

config/commandaliases/tonnerre.toml

commandMode = "COMMAND_REDIRECT_NOARG"

[redirectCommand]
command = "tonnerre"
redirectTo = "weather thunder"

YAML format

config/commandaliases/tonnerre.yml

commandMode: COMMAND_REDIRECT_NOARG
redirectCommand:
  command: tonnerre
  redirectTo: weather thunder

from commandaliases.

kraoc avatar kraoc commented on July 28, 2024

Ok ! Thanks for your quick reply.

Specify that commandalias folder is for individual command alias as it's unclear :)

It's not a problem for me to switch to individual files... I just need to ssh a little ;o)
... and duplicates my files across my servers!

from commandaliases.

FlashyReese avatar FlashyReese commented on July 28, 2024

Ok ! Thanks for your quick reply.

Specify that commandalias folder is for individual command alias as it's unclear :)

It's not a problem for me to switch to individual files... I just need to ssh a little ;o) ... and duplicates my files across my servers!

I would actually recommend against moving yet if you plan to update to 1.0.0. The 1.0.0 format is slightly different from these. If you migrate them now and want to update to 1.0.0 you will need to rewrite them again.

from commandaliases.

kraoc avatar kraoc commented on July 28, 2024

Seems good :)

06:51:56] [Server thread/INFO]:
commandaliases
├── tonnerre.json - Successfully loaded
├── pluie.json - Successfully loaded
├── clair.json - Successfully loaded
├── jour.json - Successfully loaded
├── nuit.json - Successfully loaded
├── survie.json - Successfully loaded
├── creatif.json - Successfully loaded
├── aventure.json - Successfully loaded
├── spectateur.json - Successfully loaded
├── paisible.json - Successfully loaded
├── facile.json - Successfully loaded
├── normal.json - Successfully loaded
└── difficile.json - Successfully loaded

...

pluie
[06:53:28] [Server thread/INFO]: Set the weather to rain

from commandaliases.

kraoc avatar kraoc commented on July 28, 2024

Ok ! Thanks for your quick reply.
Specify that commandalias folder is for individual command alias as it's unclear :)
It's not a problem for me to switch to individual files... I just need to ssh a little ;o) ... and duplicates my files across my servers!

I would actually recommend against moving yet if you plan to update to 1.0.0. The 1.0.0 format is slightly different from these. If you migrate them now and want to update to 1.0.0 you will need to rewrite them again.

Not a big deal :)
I switched only on my currently running server, remaining others on the old format.

Thanks anyway for this mod !
It make easier for childs to change weather :p

from commandaliases.

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.