0.9.43 • Published 12 months ago

ask-chat v0.9.43

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

Ask-Chat CLI Tool

The Ask-Chat CLI tool allows you to interact with a chat client using the command line interface. It also provides a variety of helpful commands for developers.

Getting Started

Requires Node and NPM to run To start the tool, simply run the command the following command in your terminal:

npx ask-chat

Usage

The ask-chat interactive terminal is effectively chat gpt with many custom commands and access to your filesystem. It will not read anything that you do not ask it to read, and it will not delete or modify files.

You can immediately start chatting:

bob: How do I write fizzbuzz in python?


Here's how you can write the fizzbuzz program in Python:


```python
for num in range(1, 101):
    divisible_by_three = (num % 3 == 0)
    divisible_by_five = (num % 5 == 0)

    if divisible_by_three and divisible_by_five:
        print("FizzBuzz")
    elif divisible_by_three:
        print("Fizz")
    elif divisible_by_five:
        print("Buzz")
    else:
        print(num)
```


In this program, we iterate over the numbers 1 to 100 using a `for` loop. For each number, we check if it is divisible by 3, 5, or both using the modulo operator (`%`).

If the number is divisible by both 3 and 5, we print "FizzBuzz". If it is divisible by 3, we print "Fizz". If it is divisible by 5, we print "Buzz". And if it is not divisible by either 3 or 5, we simply print the number itself.

snippets

save most recent code snippet from response

save

or you may copy it to the clipboard

copy

show a list of snippets

snippets

# 1 FizzBuzz.py
# 2 RecursiveCountdown.py
# 3 factorial.py

show snippet by name

snippet fizzbuzz

or by list order

snippet 1

debug

Debug a local file with chat-gpt

# absolute path
debug /Users/bob/dev/ask-chat/lib/openAiClient.js

# relative path
debug ./openAiClient.js

cat

Show file with syntax highlighting

# absolute
cat /Users/bob/dev/ask-chat/lib/openAiClient.js

# relative
cat ./openAiClient.js

other

# clear terminal window
clear

# exit the app
exit

# show the help menu with options
help

Contributing

If you'd like to contribute to ask-chat tool or report any issues, please visit the GitHub repository.

License

ask-chat CLI tool is open-source software licensed under the MIT license.

0.9.41

12 months ago

0.9.42

12 months ago

0.9.43

12 months ago

0.9.40

12 months ago

0.9.39

1 year ago

0.9.346

1 year ago

0.9.345

1 year ago

0.9.344

1 year ago

0.9.343

1 year ago

0.9.342

1 year ago

0.9.341

1 year ago

0.9.34

1 year ago

0.9.33

1 year ago

0.9.32

1 year ago

0.9.31

1 year ago

0.9.3

1 year ago

0.9.2

1 year ago

0.9.1

1 year ago

0.9.0

1 year ago