neocities / neocities-ruby

The Neocities Gem - A CLI and library for using the Neocities web site API.
https://neocities.org
51 stars 14 forks source link

Allowing switching sites #9

Open ghost opened 6 years ago

ghost commented 6 years ago

API keys would be stored as follows:

And the command neocities switch other-website would just copy other-website in config.

I'd like to implement that.

In the meantime one could just use what follows as neocities-switch:

#!/bin/bash
cp ~/.config/neocities/$1 ~/.config/neocities/config

After manually copying API keys.

fu-sen commented 5 years ago

Great! I would like to use multiple Neocities sites, but I was having trouble with uploading.

I coped the same means by creating a Windows batch file: https://gist.github.com/fu-sen/36b60fe0cd5a7b3ed674087882eebc32

TanguyAndreani commented 5 years ago

@fu-sen i'm glad to know that it helped you