Skip to content
#

Command line interface

Before there were graphical user interfaces, command-line interfaces were used to issue commands to a computer. Programs that handle the user interface are called command language interpreters, often known as a shell. A CLI may give a user more control over the computer and programs they wish to execute.

Here are 16,342 public repositories matching this topic...

httpie
nhooey
nhooey commented Mar 6, 2020

It's not clear from the website's documentation, or the --help output, how to do the following equivalent curl task:

Post a raw JSON query to ElasticSearch:

curl \
    --header "Content-Type: application/json" \
    --request POST \
    --data '{ "_source": [ "restricted_countries.*" ], "query": { "match_all": {} }, "size": 1000 }' \
    'http://localhost:9200/_search'

T

docwhat
docwhat commented Aug 19, 2019

When using AUFS as the storage driver in docker (or podman, etc.) then the maximum number of layers that can have data is "42".

This is because each layer that has data is unpacked into the file-system and then union mounted over each other. AUFS only allows a maximum of 42 layers to be mounted over each other.

The hard-limit is 127 data layers which is due to the maximum number of argu

blueyed
blueyed commented Sep 12, 2019

rg --debug should output information about ignore files being read.

Currently it outputs something like the following, but it is not clear where the patterns are coming from:

% rg --no-config --debug foo
DEBUG|rg::args|src/args.rs:544: not reading config files because --no-config is present
DEBUG|grep_regex::literal|grep-regex/src/literal.rs:59: literal prefixes detected: Literals {
bat
clarfon
clarfon commented Sep 21, 2019

I've been trying to export most of my dotfile-type configs to system packages I can install. A lot of programs offer the option for both a system and a user config (e.g. git reads from /etc/gitconfig, then ~/.gitconfig) although currently, bat reads just one file. It'd be nice if we could do something similar for bat as well, loading both /etc/bat/config and ~/.config/bat/config.

ava
ntjess
ntjess commented Apr 1, 2020

Consider the function signature:

def main(headless=False):
  # Construct GUI
  if not headless:
    widget.show()
    app.exec()

if __name__ == '__main__': fire.Fire(main)

After reading through the user guide for fire, I would expect python myFile -h to produce the help signature for this file. However, it runs the script with headless = True.

While in retrospect I su

apengwin
apengwin commented Feb 6, 2020
  • I have marked all applicable categories:
    • exception-raising bug
    • [ x] visual output bug
    • documentation request (i.e. "X is missing from the documentation." If instead I want to ask "how to use X?" I understand [StackOverflow#tqdm] is more appropriate)
    • new feature request
  • [ x] I have visited the [source website], and in particular
    read the [known iss
colinking
colinking commented Sep 28, 2019

When an error boundary's getDerivedStateFromError handler is called, React will print out a warning to the console like so:

The above error occurred in the <Example> component:
    in Example
    in ErrorBoundary
    in App

React will try to recreate this component tree from scratch using the error boundary you provided.

Because of this log output, it means that when the er

rgarrigue
rgarrigue commented Feb 10, 2020

Hi there

I'm trying to parse this king of lines, from a python flask service whose log format is %(asctime)s [%(process)d] (%(levelname)s) (%(name)s): %(message)s

2020-02-10 13:58:38,594 [31383] (INFO) (flask.app): request: OPTIONS https://server_hostname/0.1/token/a_big_uuid {'Host': 'server_hostname', 'X-Script-Name': '/api/auth', 'X-Forwarded-For': 'an_IP_address', 'Connection': 'c
Halfwalker
Halfwalker commented Feb 29, 2020

Change the default username color to something like blue (via variable, so it's changeable). Then, when user su's to root or logs in as root, change username color to RED. This would be a good visual warning that you might be doing something with root privs by mistake ...

So the _username function would check the euid, and if 0 set color to RED

fx
heyarne
heyarne commented Nov 28, 2019

Hi! Thanks for this tool, I searched for something like this for a looong time. :) One question: Would it be possible to add a shortcut to search backwards (i.e. going back to the previous result, possibly wrapping around at the top)? I immediately assumed it would be possible via N (like in vim) or p, but realized both keys don't have any effect.

ssssam
ssssam commented Apr 2, 2019

The beets 'man' page is a great source of documentation. I noticed a small issue though. In the section for beets ls it says this:

       Want  to search for "Gronlandic Edit" by of Montreal? Try beet list gronlandic.
       Maybe you want to see everything released in  2009  with  "vegetables"  in  the
       title?  Try beet list year:2009 title:vegetables. You can also specify the s
tokuchan
tokuchan commented Mar 27, 2020

I didn't know where to report this issue, so here it is!


Expected Behavior

When I search for, say "option" on the website, by entering "option" into the search box and clicking "Go", the search results page includes relevant results.

Actual Behavior

The search results page provides almost no functional links. Instead, the vast majority, if not all results are "Page not f

gautaz
gautaz commented Aug 29, 2019

What happened:

I tried to use the --make option to pass --jobs=5 to the NodeJS build process.

What you expected to happen:

I expected the NodeJS build to be faster.

What happened:

I was unable to pass the jobs options to the NodeJS make command, here is what happened:

➤  nexe --build --make --jobs=5
ℹ nexe 3.3.2
✔ Node source extracted to: /home/thibault.hi

Created by Glenda Schroeder

Released 1965

Wikipedia
Wikipedia
You can’t perform that action at this time.