Skip to content

Script for accessing Imgur from the command line.

Notifications You must be signed in to change notification settings

cbodden/climgur.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 

Repository files navigation

climgur.sh

This script is used for adding and removing images to imgur from the command line.
More features being added.

Keys can be grabbed : https://api.imgur.com/oauth2/addclient

Usage



                          ___,A.A_  __
                          \   ,   7"_/
                           ~"T(  r r)
                             | \    Y
                             |  ~\ .|
                             |   |`-'
                             |   |
                             |   |
                             |   |
                             |   |
                             j   l
                            /     \
                           Y       Y
                           l   \ : |
                           /\   )( (
                          /  \  I| |\
                         Y    I l| | Y
                         j    ( )( ) l
                        / .    \ ` | |\
                       Y   \    i  | ! Y
                       l   .\_  I  |/  |
                        \ /   [\[][]/] j
                     ~~~~~~~~~~~~~~~~~~~~~~~
               _ _                                  _
           ___| (_)_ __ ___   __ _ _   _ _ __   ___| |__
          / __| | | '_ ` _ \ / _` | | | | '__| / __| '_ \
         | (__| | | | | | | | (_| | |_| | | _  \__ \ | | |
          \___|_|_|_| |_| |_|\__, |\__,_|_|(_) |___/_| |_|
                             |___/

NAME
    climgur.sh - this is for adding and deleting images from imgur

SYNOPSIS
    climgur.sh [OPTION]... [FILE]...

DESCRIPTION
    Access your Imgur account from the command line.
    Options can only be used one at a time for now.

    -a [options]
            Access account info and authentication
            Options include:
                auth
                    This will do initial OAUTH2 auth
                info
                    This will show you the json info for your account

    -d [options]
            This is for folder / album clone, create, or delete
            Options include:
                create
                    This will create an empty album into your account
                delete
                    This option will delete the selected album locally
                download
                    This option will ask for an album id and download the
                    entire album to the path where .climgur.rc is stored
                list
                    This option lists all the downloaded albums

    -h      Show this file (usage).

    -i [options]
            This is to handle images manipulations
            Options include :
                delete
                    This option shows a list of files with choice of delete
                info
                    This option will show the details for the image
                screenshot
                    This option takes a screenshot and uploads it
                upload [path to file|path to folder]
                    This option allows for file uploads

    -l [options]
            This handles showing what is in the log folder
            Options include :
                clean
                    This option will remove the deleted files logs
                list
                    This option lists and shows log files

    -o      This opens image in either browser or feh

    -s      This bypasses using "-i screenshot" for quick screenshots

    -v      Show version

    This all reads the .climgur.rc file which should be located in
    $HOME/.climgur
    A sample rc file is in the github repo which shows what should be in there.

Requirements

Todo / Add

License and Author

Author:: Cesar Bodden (cesar@pissedoffadmins.com)

Copyright:: 2016, Pissedoffadmins.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

Script for accessing Imgur from the command line.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages